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

1 回表示 (過去 30 日間)
MA
MA 2014 年 6 月 7 日
コメント済み: Star Strider 2014 年 6 月 7 日
I want to plot each three diagrams in one figure

採用された回答

Star Strider
Star Strider 2014 年 6 月 7 日
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 件のコメント
MA
MA 2014 年 6 月 7 日
thank you so much
Star Strider
Star Strider 2014 年 6 月 7 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by