How can i plot f(i),g(i),h(i) in one figure(i)?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MA
am 7 Jun. 2014
Kommentiert: Star Strider
am 7 Jun. 2014
I want to plot each three diagrams in one figure
0 Kommentare
Akzeptierte Antwort
Star Strider
am 7 Jun. 2014
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!