How to output a figure from a function?

6 vues (au cours des 30 derniers jours)
Darcy
Darcy le 21 Mar 2013
Is there a way to output a figure from a function?
I have:
figure(1);plot(x,y)
figure(2);plot(y,z)
Is it possible to create a function that, when called, displays these figures as figure 1 and figure 2?
Any help is appreciated. Thanks

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 21 Mar 2013
function curv(x,y,z)
figure(1);plot(x,y)
figure(2);plot(y,z)

Catégories

En savoir plus sur 2-D and 3-D 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!

Translated by