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

MATLABmatlab gui

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

Best Answer

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)');
%