how to give ylabel desired label automatically in loop subplots???
4 ビュー (過去 30 日間)
古いコメントを表示
hello all, I have this little problem in which for the given coding below i want that the graph to be plotted should have c1, c2, c3, c4, c5, c6 labelling instead of 'C' automatically.
SCRIPT IS:
figure
for i=1:6
subplot(6,1,i)
plot (sin(1:100)*10^(i-1))
ylabel('C','Fontname','Times new roman','FontSize',10,'fontweight','b')
end
THANX..... FOR THE ATTTENTION... WAITING FOR REPLY SOON
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 5 月 19 日
編集済み: Azzi Abdelmalek
2013 年 5 月 19 日
figure
for i=1:6
subplot(6,1,i)
plot (sin(1:100)*10^(i-1))
y_titre=sprintf('c%d',i)
ylabel(y_titre,'Fontname','Times new roman','FontSize',10,'fontweight','b')
end
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!