Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!g1g2000pra.googlegroups.com!not-for-mail
From: Eli <echmouni@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: gui push button
Date: Thu, 2 Jul 2009 12:59:10 -0700 (PDT)
Organization: http://groups.google.com
Lines: 26
Message-ID: <0d87e592-b25c-41a3-ba42-c27a5b03f53f@g1g2000pra.googlegroups.com>
References: <h2j0ke$a5b$1@fred.mathworks.com> <fda3aff9-37bc-43d2-8865-8b70c4350e1e@2g2000prl.googlegroups.com>
NNTP-Posting-Host: 140.198.135.132
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1246564750 7293 127.0.0.1 (2 Jul 2009 19:59:10 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 2 Jul 2009 19:59:10 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g1g2000pra.googlegroups.com; posting-host=140.198.135.132; 
	posting-account=UI6aBwoAAABoho8GQUp8tKn5h6sQT2lc
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; 
	.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 
	3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 
	3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:552525


On Jul 2, 12:45 pm, Nathan <ngrec...@gmail.com> wrote:
> 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

Hello Nathan
yes i am using Guide and i created a push button but i cannot figure
out the code that i need to write in the push button callback . I have
variable values in the matlab workspace and i want to clear them . If
i was using the command window i would just write clear so i need that
code that performs the same operation from a push button in the gui
thx