A function that outputs multiple plots?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Can one write a function that outputs multiple plots?
4 commentaires
hosein Javan
le 13 Août 2020
alpedhuez for example the function "step" plots step response of a system. or the function "spectrogram" plots the fourier transform spectrum.
Réponse acceptée
hosein Javan
le 13 Août 2020
function plotoutput()
x = 1:10;
y = x.*x;
plot(x,y)
when you call the function, it shows a figure.
3 commentaires
hosein Javan
le 13 Août 2020
Modifié(e) : hosein Javan
le 13 Août 2020
function plotoutput()
x = 1:10;
y1 = x.*x;
y2 = x + 1;
figure(1);plot(x,y1)
figure(2);plot(x,y2)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!