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

2 vues (au cours des 30 derniers jours)
How can we display a graph in axis of matlab GUI by pressing another button(say display)

Réponse acceptée

Morteza
Morteza le 19 Août 2015
Modifié(e) : Morteza le 19 Août 2015
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)');
%
  2 commentaires
D Joseph
D Joseph le 20 Août 2015
How can we clear the graph in axis of matlab GUI by pressing another button(say clear)?

Connectez-vous pour commenter.

Plus de réponses (3)

Morteza
Morteza le 20 Août 2015
just create another button and use like below if you several axes
function Clear_Callback(hObject, eventdata, handles)
axes(handles.axes1)
cla;

Morteza
Morteza le 20 Août 2015
just create another button and use like below if you several axes
function Clear_Callback(hObject, eventdata, handles)
axes(handles.axes1)
cla;

Morteza
Morteza le 20 Août 2015
just create another button and use like below if you several axes
function Clear_Callback(hObject, eventdata, handles)
axes(handles.axes1)
cla;

Catégories

En savoir plus sur Specifying Target for Graphics Output dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by