Plot multiple subplot in iteration for each data set.
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Subplots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!