フィルターのクリア

Titling figures from 1 till 20.

1 回表示 (過去 30 日間)
Marwan
Marwan 2011 年 7 月 26 日
I am plotting 20 figures on one big figures. I need to title each image by "image i", so that 'i' is 1,2,3....20 depending on the order of image. (example: 'image 1', 'image 2', 'image 3'.... 'image 20')
Does anybody know how to make it?
Here's the code:
while i<20
j=i+1;
f_c5_diff(j,:)=abs(f_c5(j,:)-f_c5(1,:));
f_c13_diff(j,:)=abs(f_c13(j,:)-f_c13(1,:));
subplot(5,4,j)
plot(F,f_c5_diff(j,:),'r')
hold on
plot(F,f_c13_diff(j,:),'b')
hold off
xlabel('Frequency (HZ)')
ylabel('Amplitude (uV)')
title ('image')
i=i+1;
end
Thanks, Marwan

採用された回答

Chirag Gupta
Chirag Gupta 2011 年 7 月 26 日
title(['image ' num2str(i)]);

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by