Thread Subject: GUI NEED HELP...!!

Subject: GUI NEED HELP...!!

From: hussain

Date: 19 Apr, 2008 13:43:09

Message: 1 of 2

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

Subject: GUI NEED HELP...!!

From: Abel Brown

Date: 19 Apr, 2008 19:40:05

Message: 2 of 2

"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.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com