Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!newsfeed.stanford.edu!news.aset.psu.edu!support1.mathforum.org!not-for-mail
From: bogfrog <jmcgraw@rcn.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: passing images between two GUI
Date: Sat, 09 Aug 2008 04:26:19 EDT
Organization: The Math Forum
Lines: 8
Message-ID: <6587715.1218270409944.JavaMail.jakarta@nitrogen.mathforum.org>
References: <g7ir0p$9sf$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1218270409 5971 144.118.30.135 (9 Aug 2008 08:26:49 GMT)
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Sat, 9 Aug 2008 08:26:49 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:484644



You know what... you actually can pass to a gui, in the same way you do to a function.

In the opening function of the gui, do this:

handles.input1 = varargin{1};


and then elsewhere in this gui, the variable you passed will be in handles.input.