How do I insert a variable into a graph title?

5 ビュー (過去 30 日間)
matlabkid602
matlabkid602 2017 年 7 月 20 日
コメント済み: matlabkid602 2017 年 7 月 20 日
Hi, I'm writing a piece of code where I want to input arguements then plot. The length of the vector that I input changes the title of the graph. I'm doing this manually just now.
How do I input into my graph title "plotting length(xvector) dipoles" where xvector length changes at the start of the code?
It just puts "length(xvector)" in the graph title.
Thanks.

採用された回答

KL
KL 2017 年 7 月 20 日
title(['plotting ' num2str(length(xvector)) ' dipoles'])
  1 件のコメント
matlabkid602
matlabkid602 2017 年 7 月 20 日
THANK YOU SO MUCH KIND SIR.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by