The code is as follows ; I want to use the iterating b value in the legends . like b=5, b=8 , b=11 etc.
if true
% code
for b= 5:3:40
f = @(i,o) cotd(o) - cotd(i) - w/c;
fimplicit(f,[0 50 0 50])
legend('beta = ' b );
end
end

 採用された回答

the cyclist
the cyclist 2017 年 12 月 23 日
編集済み: the cyclist 2017 年 12 月 23 日

1 投票

legend(['beta = ',sprintf('%d',b)])

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2017 年 12 月 23 日

編集済み:

2017 年 12 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by