フィルターのクリア

How to output a figure from a function?

6 ビュー (過去 30 日間)
Darcy
Darcy 2013 年 3 月 21 日
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

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 21 日
function curv(x,y,z)
figure(1);plot(x,y)
figure(2);plot(y,z)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by