How to display all figures

122 views (last 30 days)
Reyasudin
Reyasudin on 24 Jun 2013
Hello,
when I run my matlab m file. Only the last plotted figure displayed. May I know what should I do in order to display all figure plotted in the matlab script.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 24 Jun 2013
Edited: Azzi Abdelmalek on 24 Jun 2013
%each plot in one figure
figure(1)
plot(x1,y1)
figure(2)
plot(x2,y2)
%and so on
%All plot in one figure
figure
hold on
plot(x1,y1)
plot(x2,y2)
%and so o

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!