A function that outputs multiple plots?
1 回表示 (過去 30 日間)
古いコメントを表示
Can one write a function that outputs multiple plots?
4 件のコメント
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.
採用された回答
hosein Javan
2020 年 8 月 13 日
function plotoutput()
x = 1:10;
y = x.*x;
plot(x,y)
when you call the function, it shows a figure.
3 件のコメント
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)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!