im using plot to graph one curve but now i need to plot a second curve on a different graph so how can i open 2 graphs from one script

 採用された回答

Srinivas
Srinivas 2012 年 5 月 13 日

4 投票

help figure
is this what you want

4 件のコメント

lowcalorie
lowcalorie 2012 年 5 月 13 日
I just need to bring up a second graph because when i use plot twice it just plots both graphs on 1 window i need them on separate windows
Srinivas
Srinivas 2012 年 5 月 13 日
before the second plot use
'figure' this will open a new figure window
MILAN Barot
MILAN Barot 2020 年 6 月 14 日
how to plot two spereate graphs in a single window
Walter Roberson
Walter Roberson 2020 年 6 月 14 日
Either use subplot like Image Analyst said, or use "hold on" after drawing the first graph so that the second graph goes into the same axes.

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2012 年 5 月 13 日

3 投票

Try subplot(). This will let you have two plots on the same figure so you can see them both at the same time and don't have to keep switching between figures.
subplot(1, 2, 1);
plot(1:30);
subplot(1, 2, 2);
plot(200:247);

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by