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

1 visualizzazione (ultimi 30 giorni)
I want to plot each three diagrams in one figure

Risposta accettata

Star Strider
Star Strider il 7 Giu 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 Commenti
MA
MA il 7 Giu 2014
thank you so much

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by