![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178124/image.png)
How can we display a graph in axis of matlab GUI by pressing another button(say display)?
2 ビュー (過去 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)');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178124/image.png)
%
その他の回答 (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!