Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!u72g2000cwu.googlegroups.com!not-for-mail
From: "nissan.aloni@intel.com" <nissan.aloni@intel.com>
Newsgroups: comp.soft-sys.matlab
Subject: Names of Variables stored in other variables
Date: 2 Apr 2006 23:25:50 -0700
Organization: http://groups.google.com
Lines: 12
Message-ID: <1144045550.765666.176890@u72g2000cwu.googlegroups.com>
NNTP-Posting-Host: 192.198.152.97
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1144045555 9339 127.0.0.1 (3 Apr 2006 06:25:55 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 3 Apr 2006 06:25:55 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 hafwpr01.iil.intel.com:911 (squid/2.5.STABLE12)
Complaints-To: groups-abuse@google.com
Injection-Info: u72g2000cwu.googlegroups.com; posting-host=192.198.152.97;
Xref: news.mathworks.com comp.soft-sys.matlab:342193



hi,

can i refer to a variable whos name is stored in another varialbe?

e.g. :
MyVar = [1 1 1];
a = 'MyVar';

Can i get to the values stored in MyVar using only the "a" variable?

thanks