How can i plot f(i),g(i),h(i) in one figure(i)?

1 vue (au cours des 30 derniers jours)
MA
MA le 7 Juin 2014
Commenté : Star Strider le 7 Juin 2014
I want to plot each three diagrams in one figure

Réponse acceptée

Star Strider
Star Strider le 7 Juin 2014
Use the subplot function.
Your loop becomes:
figure(1)
for i = 1:3
subplot(3,1,i)
. . .
plot(x,f(i),'-b', ... )
. . .
end
to get 3 stacked plots in one figure. Other configurations are possible. See the documentation on subplot for details.
  6 commentaires
MA
MA le 7 Juin 2014
thank you so much
Star Strider
Star Strider le 7 Juin 2014
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by