A function that outputs multiple plots?

4 件のコメント

David Hill
David Hill 2020 年 8 月 13 日
There are already many Matlab functions that output plots.
alpedhuez
alpedhuez 2020 年 8 月 13 日
For example?
hosein Javan
hosein Javan 2020 年 8 月 13 日
alpedhuez for example the function "step" plots step response of a system. or the function "spectrogram" plots the fourier transform spectrum.
alpedhuez
alpedhuez 2020 年 8 月 13 日
Let me work on it.

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

 採用された回答

hosein Javan
hosein Javan 2020 年 8 月 13 日

0 投票

function plotoutput()
x = 1:10;
y = x.*x;
plot(x,y)
when you call the function, it shows a figure.

3 件のコメント

alpedhuez
alpedhuez 2020 年 8 月 13 日
Multiple plots, not just one!
hosein Javan
hosein Javan 2020 年 8 月 13 日
編集済み: hosein Javan 2020 年 8 月 13 日
function plotoutput()
x = 1:10;
y1 = x.*x;
y2 = x + 1;
figure(1);plot(x,y1)
figure(2);plot(x,y2)
alpedhuez
alpedhuez 2020 年 8 月 13 日
Let me work on it.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLabels and Styling についてさらに検索

タグ

質問済み:

2020 年 8 月 13 日

コメント済み:

2020 年 8 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by