How to plot 'Reset' button at Matlab GUI
2 次查看(过去 30 天)
显示 更早的评论
i want to programmed a reset button what is the syntax or code that i can inserted. ok, this is an example if i want programmed a 'SAVE' button i used this syntax in matlab gui
Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
g=get(handles.axes2,'Userdata');
savePlotWithinGUI(g);
But how to programmed a 'RESET' button using same syntax like above.
This 'RESET' button is used for refresh the axes handles.
4 个评论
采纳的回答
Walter Roberson
2013-3-11
cla(handles.axes1)
cla(handles.axes2)
5 个评论
Jan
2013-3-11
Please post a new question in a new thread and not as comment to an answer. Otherwise the accepted answer status gets meaningless.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!