Create Figures in a loop
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am trying to create multiple figures using a for loop, but I am not sure how it is done? I also need to save them as jpeg files with their specific names.
figures = [];
% Generate figures
for i=1:10
figures(i)
histogram(r(i,:),'Normalization','probability');
xlim([0, 2*Mean(1,i)]);
ylabel('Probability')
title(i,'th end-event')
saveas(figures(i),i,'th end-event.jpg')
end
0 件のコメント
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!