Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to check if a parameter is already in workspace
Date: Tue, 30 Jun 2009 17:50:16 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 12
Message-ID: <h2dj8o$k34$1@fred.mathworks.com>
References: <h2bggl$3rs$1@fred.mathworks.com> <h2bhel$3c3$1@fred.mathworks.com> <h2dip9$hh5$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246384216 20580 172.30.248.35 (30 Jun 2009 17:50:16 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 30 Jun 2009 17:50:16 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:551774


"Serkan " <serkanvai@gmail.com> wrote in message <h2dip9$hh5$1@fred.mathworks.com>...
> Hi
> how can i use "exist" in the M-Function of my GUI
> 
>         case 'PB_STARTSIM'
>             Check = evalin('base',(char(exist('Uk','var'))));

should read

     res=evalin('base','exist(''Uk'',''var'');');

us