Function returning multiple plots

6 ビュー (過去 30 日間)
Kaustubh Bhargava
Kaustubh Bhargava 2019 年 10 月 28 日
回答済み: Turlough Hughes 2019 年 10 月 28 日
i have a function that takes input from a folder containing mat files and returns a single plot everytime its called. So in all i have 4 plots at the end. My question is how can i get all these plots under a single window ??
would be glad if anyone can help me !

回答 (1 件)

Turlough Hughes
Turlough Hughes 2019 年 10 月 28 日
Just use the hold on statement as follows:
myfunction(input1);
hold on; myfunction(input2);
myfunction(input3);
myfunction(input4);

カテゴリ

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