Path: news.mathworks.com!not-for-mail
From: Loren Shure <loren@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Talking to multiple GUI
Date: Mon, 11 Feb 2008 15:50:37 -0500
Organization: The MathWorks
Lines: 22
Message-ID: <MPG.221a7f246133aa92989803@news.mathworks.com>
References: <foglbe$o9o$1@fred.mathworks.com>
NNTP-Posting-Host: shurel.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1202763037 8725 172.31.57.117 (11 Feb 2008 20:50:37 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 11 Feb 2008 20:50:37 +0000 (UTC)
User-Agent: MicroPlanet-Gravity/2.70.2067
Xref: news.mathworks.com comp.soft-sys.matlab:450657


In article <foglbe$o9o$1@fred.mathworks.com>, amol.borkar@gmail.com 
says...
> 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?
> 

Nested functions can help you.  See examples on matlabcentral or my 
blog.

-- 
Loren
http://blogs.mathworks.com/loren/