How can we display a graph in axis of matlab GUI by pressing another button(say display)?

2 次查看(过去 30 天)
How can we display a graph in axis of matlab GUI by pressing another button(say display)

采纳的回答

Morteza
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
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
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
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;

类别

Help CenterFile 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!

Translated by