필터 지우기
필터 지우기

Help me about guide in matlab ?

조회 수: 6 (최근 30일)
Nguyen Trong Nhan
Nguyen Trong Nhan 2013년 12월 20일
편집: Image Analyst 2013년 12월 20일
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)

채택된 답변

Image Analyst
Image Analyst 2013년 12월 20일
편집: Image Analyst 2013년 12월 20일
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개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by