Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
How can we display a graph in axis of matlab GUI by pressing another button(say display)

Risposta accettata

Morteza
Morteza il 19 Ago 2015
Modificato: Morteza il 19 Ago 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)');
%

Più risposte (3)

Morteza
Morteza il 20 Ago 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 il 20 Ago 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 il 20 Ago 2015
just create another button and use like below if you several axes
function Clear_Callback(hObject, eventdata, handles)
axes(handles.axes1)
cla;

Categorie

Scopri di più su Specifying Target for Graphics Output in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by