How to plot 'Reset' button at Matlab GUI

조회 수: 3 (최근 30일)
Siti Nor Arma Bt Mohd Zainun
Siti Nor Arma Bt Mohd Zainun 2013년 3월 7일
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
Walter Roberson 2013년 3월 11일
Please explain what you want the RESET button to do.
Siti Nor Arma Bt Mohd Zainun
Siti Nor Arma Bt Mohd Zainun 2013년 3월 11일
ok, first i upload a picture at the first axes, then i will enhance the image at the second axes, after that i want to upload another picture at 1st axes again, therefore i need to reset the both axes become clear. how can i programmed the 'reset button'?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 3월 11일
cla(handles.axes1)
cla(handles.axes2)
  댓글 수: 5
Jan
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.
Siti Nor Arma Bt Mohd Zainun
Siti Nor Arma Bt Mohd Zainun 2013년 3월 19일
ok thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by