Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!24g2000yqm.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: gui push button
Date: Thu, 2 Jul 2009 18:29:12 -0700 (PDT)
Organization: http://groups.google.com
Lines: 10
Message-ID: <ca5729ef-d838-46b4-8f22-b3c0ce8217e1@24g2000yqm.googlegroups.com>
References: <h2j0ke$a5b$1@fred.mathworks.com> <fda3aff9-37bc-43d2-8865-8b70c4350e1e@2g2000prl.googlegroups.com> 
	<0d87e592-b25c-41a3-ba42-c27a5b03f53f@g1g2000pra.googlegroups.com> 
	<39e89a1d-56f2-4ff3-8ff3-e6d32272b3be@t11g2000prh.googlegroups.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1246584553 6785 127.0.0.1 (3 Jul 2009 01:29:13 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 3 Jul 2009 01:29:13 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 24g2000yqm.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:552586


Again, you need to understand what I responded first.  What Nathan
said will only clear the local scope variables that exist ONLY within
that button's callback.  It will not clear any other variables in any
other workspace, which means that it won't clear anything in the
global workspace either.  I know - I just tested this to verify it.  I
put a clear in the callback and it cleared only the local variables
and those in the global workspace remained untouched.  If that's what
you want, then fine, you're done, no problem.  I just mention this
because it appears that you don't have a complete understanding of
what "workspace" entails.