How do I hold plots from a for loop?
Afficher commentaires plus anciens
Hi everyone,
I am trying to hold the plots produced in a for loop but I only get the last plot. What I have done so far is the following.
for i=1:30
plot(y(:,i))
hold;
end
Thanks in advance.
1 commentaire
What is y? Or rather what size is it?
You should always use the
plot( hAxes,... )
version of the plot command, to specify a specific axes, especially if you are expecting 30 different figures as your comment to the answer below suggests.
It's not obvious how you want 30 different figures, but also want to hold the plots within a figure though. What are you expecting on each of these 30 figures?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Two y-axis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!