How to output a figure from a function?

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

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 21 Mär. 2013

0 Stimmen

function curv(x,y,z)
figure(1);plot(x,y)
figure(2);plot(y,z)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 21 Mär. 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by