Path: news.mathworks.com!not-for-mail
From: "simon ott" <simon_ott@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: num2str in loop
Date: Tue, 20 Jan 2009 00:22:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gl35f9$arm$1@fred.mathworks.com>
Reply-To: "simon ott" <simon_ott@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1232410921 11126 172.30.248.38 (20 Jan 2009 00:22:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 20 Jan 2009 00:22:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1507613
Xref: news.mathworks.com comp.soft-sys.matlab:512586


hello
I want to assign the name of a variable based on loop iteration. 

b = [3 4 ]

Iteration = 1: 2

['abc' num2str(Iteration)] =   b(i) 

End


But it does not work

Any hint ?