Help me about guide in matlab ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nguyen Trong Nhan
am 20 Dez. 2013
Bearbeitet: Image Analyst
am 20 Dez. 2013
I make a GUIDE in matlab for my physics app. It have some buttons, edit text to input number, static text to return result, axes to plot. Now, I want to create a RESET button to reset all data, erase the plot. Could you help me about the code for reset button (function reset_Callback(hObject, eventdata, handles)
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 20 Dez. 2013
Bearbeitet: Image Analyst
am 20 Dez. 2013
Inside the callback for that button, use set to set all the controls to the values you want:
set(handles.text1, 'String', 'Hello User');
set(handles.scrollbar, 'Value', 42);
set(handles.radioButton, 'Value', 'off');
axes(handles.axesPlot);
cla reset;
and so on.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!