Lable in a for loop (subplots)
1 回表示 (過去 30 日間)
古いコメントを表示
I have many subplots produced by a for loop and want to label them on the y-axis via ylabel. The code looks like this:
for m=1:n
subplot...
ylabel (...)
end
Is it possible to name each subplot with the letter M and the number from the for loop, n? So that I have M1, M2, M3,... Mn on the y-axis.
Thanks!
0 件のコメント
採用された回答
Image Analyst
2014 年 7 月 6 日
for m=1:n
subplot...
mLabel = sprintf('M%d', m);
ylabel(mLabel, 'FontSize', 15);
end
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!