Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Talking to multiple GUI
Date: Sat, 9 Feb 2008 06:43:02 +0000 (UTC)
Organization: Konem Solutions
Lines: 23
Message-ID: <foji1m$ejo$1@fred.mathworks.com>
References: <foglbe$o9o$1@fred.mathworks.com>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202539382 14968 172.30.248.38 (9 Feb 2008 06:43:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 9 Feb 2008 06:43:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 413701
Xref: news.mathworks.com comp.soft-sys.matlab:450294


"Amol " <amol.borkar@gmail.com> wrote in message
<foglbe$o9o$1@fred.mathworks.com>...
> I am having a lot of trouble in trying to talk to multiple
> GUIs. I have created fig1 and fig2 which have seperate fig
> and m files. Fig1 has a Text Box and fig2 has a Button. What
> I would like to do is control something in fig1 by doing
> something in fig2 e.g. change the text in TextBox of fig1 by
> pressing the button in fig2. Can someone please tell me how
> I should go by it? I start in fig2 and then
> 
> h = fig1;
> 
> I see fig1 but I cannot control anything beyond that... Any
> suggestions?


Another way of doing it.
doc setappdata
doc getappdata

I think there is a small example on the FEX too on this issue.
HTH
Vihang