How can we display a graph in axis of matlab GUI by pressing another button(say display)?
조회 수: 3 (최근 30일)
이전 댓글 표시
채택된 답변
Morteza
2015년 8월 19일
편집: Morteza
2015년 8월 19일
for that purpose u need to set axes as a current axis to plot1 for example: (Start is that button that must plot the data on axis) but before that u set axis in another place of your GUI by name of axes1
function Start_Callback(hObject, eventdata, handles)
axes(handles.axes1)
ezplot('sin(x)');
%
추가 답변 (3개)
Morteza
2015년 8월 20일
just create another button and use like below if you several axes
function Clear_Callback(hObject, eventdata, handles)
axes(handles.axes1)
cla;
Morteza
2015년 8월 20일
just create another button and use like below if you several axes
function Clear_Callback(hObject, eventdata, handles)
axes(handles.axes1)
cla;
댓글 수: 0
Morteza
2015년 8월 20일
just create another button and use like below if you several axes
function Clear_Callback(hObject, eventdata, handles)
axes(handles.axes1)
cla;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!