A function that outputs multiple plots?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Can one write a function that outputs multiple plots?
4 Commenti
hosein Javan
il 13 Ago 2020
alpedhuez for example the function "step" plots step response of a system. or the function "spectrogram" plots the fourier transform spectrum.
Risposta accettata
hosein Javan
il 13 Ago 2020
function plotoutput()
x = 1:10;
y = x.*x;
plot(x,y)
when you call the function, it shows a figure.
3 Commenti
hosein Javan
il 13 Ago 2020
Modificato: hosein Javan
il 13 Ago 2020
function plotoutput()
x = 1:10;
y1 = x.*x;
y2 = x + 1;
figure(1);plot(x,y1)
figure(2);plot(x,y2)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!