Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!2g2000prl.googlegroups.com!not-for-mail
From: Nathan <ngreco32@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: gui push button
Date: Thu, 2 Jul 2009 12:45:24 -0700 (PDT)
Organization: http://groups.google.com
Lines: 11
Message-ID: <fda3aff9-37bc-43d2-8865-8b70c4350e1e@2g2000prl.googlegroups.com>
References: <h2j0ke$a5b$1@fred.mathworks.com>
NNTP-Posting-Host: 198.206.219.33
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1246563925 5117 127.0.0.1 (2 Jul 2009 19:45:25 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 2 Jul 2009 19:45:25 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 2g2000prl.googlegroups.com; posting-host=198.206.219.33; 
	posting-account=_KeVcAoAAAB7j3xn35ujaQ0BoQhuzwJP
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) 
	Gecko/20090624 Firefox/3.5,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 wwwproxy-son-ca-01.ca.sandia.gov:80 (squid/2.5.STABLE14)
Xref: news.mathworks.com comp.soft-sys.matlab:552521


On Jul 2, 12:09 pm, "Eli Chmouni" <echmo...@gmail.com> wrote:
> I have a gui and i want the code that i need to add to a gui push button to clear all the variables from the workspace.

handle = uicontrol('Style','pushbutton','String','Clear',...
'Units','normalized','Position',[.25 .25 .5 .5],'Callback','clear');

It's simpler using GUIDE, but there's some code for you to mess around
with.

-Nathan