ghakkens
Mechanical
- May 1, 2003
- 1
I define within guide an area to plot a graphical function. The file.m program launches correctly, but the graphic is plotted in a separate window, instead of the destined area I define under guide.
As I use active buttons, it would be nicer to have the plot alongside the buttons.
Any help would be appreciated
Geoffrey
function varargout = pushbutton1_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.pushbutton1.
disp('pushbutton1 Callback not implemented yet.')
axes(handles.axes1)
[X,Y,Z] = peaks(30);
handles.data = [X , Y , Z] ;
guidata(h, handles);
mesh(handles.data)
As I use active buttons, it would be nicer to have the plot alongside the buttons.
Any help would be appreciated
Geoffrey
function varargout = pushbutton1_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.pushbutton1.
disp('pushbutton1 Callback not implemented yet.')
axes(handles.axes1)
[X,Y,Z] = peaks(30);
handles.data = [X , Y , Z] ;
guidata(h, handles);
mesh(handles.data)