Matlab GUI, plotting figures using panels

Status
Not open for further replies.

kimo4ever

Member level 2
Joined
Dec 10, 2010
Messages
45
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,574
hello, i am trying to plot multiple plot using subplot in a GUI on a panel, but i don't know how to reset it, how to clear figure from it , when i use cla to its handles , it clear the second plot and keep the first one ( my code is subplot(211)) , any help ? thnx
 

you need to specify which axis you wish to reset:
Code:
subplot(211),cla
subplot(212),cla
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…