How to clear data from plot in matlab GUI, but then re-plot it without re-running the GUI
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have made a GUI that plots multiple data sets using a radio button for each data set. I have made a CLEAR ALL button, that when the user presses it, I want all the data from the plot to be removed. I have this working, but then when I re toggle the radio buttons again the data does not start plotting on the plot again. Is there a way I can do this?
1 Commento
Risposte (1)
Shoaibur Rahman
il 20 Dic 2014
Use cla under the Callback function of your button. Don't use clear all command, as it clears all variables. Examples:
cla(handles.axes1)
cla(handles.axes2)
cla(handles.axes3)
...
...
0 Commenti
Vedere anche
Categorie
Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!