|
"hussain " <hussain_kiet@hotmail.com> wrote in message
<fucstd$41c$1@fred.mathworks.com>...
> hi can any one plzz tell me that how can i get a matrix
> from one from GUI to another.....
> when i press a button a new gui opens and there a matrix
> is generated now i want that matrix to be returned to the
> previous gui so that i can manipulate it....
>
>
> well thanx in advance
the first line of your gui m-file is
function varargout = your_GUI(varargin)
I'd probably start there!
you can save data generated in callbacks by saving it in the
"handles"
for instance in your gui's opening function:
% Choose default command line output for obs_analyzer
handles.output = hObject;
handles.M1 = nan;
handles.M2 = nan;
% Update handles structure
guidata(hObject, handles);
then if during your callback you can have something like
hanles.M1 = [1 2 3 4]
handles.M2 = [5 6 7 8]
If you wanted to access that data later in another callback
you could.
But all in all i would imagine that saving the matrices from
one gui as mat files and then having the other gui load them
would be the best solution.
|