A function that outputs multiple plots?
4 次查看(过去 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 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!