Plot multiple subplot in iteration for each data set.
古いコメントを表示
Dear All,
I have a structure containing 'n' number of fit results (contained in variable fitResults with 1xn struct array). I would like to plot n = 1:5 in subplot(2,5,1). Then plot 6:10 in subplot(2,5,2) and so on until all n number of fitshave been plotted. I can plot all of them in sequence by using,
figure; hold on;
for i = 1: size(fitResults,2)
plot(fitResults(i).fits,x,y)
hline(0,'-r')
pause(5)
end
However I am having trouble separating them in various subplots in batches of 5. I was wondering if you can provide me some advice.
Many thanks in advance.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!