Modify axis label for each plot within loop

7 ビュー (過去 30 日間)
L'O.G.
L'O.G. 2022 年 12 月 6 日
回答済み: Voss 2022 年 12 月 6 日
I am generating plots for a series of values using a for loop and wish to output the value in the axis label. How do I do that?
ylabel('z = [insert value here]')

採用された回答

Voss
Voss 2022 年 12 月 6 日
z = 2.1;
ylabel(sprintf('z = %.2f',z))
See: sprintf

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by