Three different graph on the same figure

Hi all,
I have three different plot and i want to see these three graph on the same Figure seperately. How can i do that?
Thanks

1 件のコメント

S C
S C 2023 年 6 月 16 日
You can use 'subplot',you can create the 3 graphs in one figure.
Here's an example:
figure(1)
subplot(3,1,1);
x = [1:0.1:10];
y1 = sin(x);
plot(x,y1)
subplot(3,1,2);
y2 = sin(2*x);
plot(x,y2)
subplot(3,1,3)
y3 = sin(4*x);
plot(x,y3)

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

回答 (1 件)

Star Strider
Star Strider 2023 年 6 月 16 日

0 投票

I am not certain from your description what you want.
The subplot, tiledlayout and stackedplot functions may be appropriate.

カテゴリ

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

質問済み:

2023 年 6 月 16 日

回答済み:

2023 年 6 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by