Path: news.mathworks.com!not-for-mail
From: "Nirmal " <nirmal_2489@yahoo.co.in>
Newsgroups: comp.soft-sys.matlab
Subject: matrix names
Date: Sun, 30 Aug 2009 21:34:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <h7er8b$pjg$1@fred.mathworks.com>
Reply-To: "Nirmal " <nirmal_2489@yahoo.co.in>
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 1251668043 26224 172.30.248.35 (30 Aug 2009 21:34:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 30 Aug 2009 21:34:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1895978
Xref: news.mathworks.com comp.soft-sys.matlab:567143


how to assign different names for matrices in a for loop..

for ex

if x=[1 2]

if i want I1=[1 1]
           I2= [1 2]

for i=1:2
     [what must be here??]=[1   x(i)];
end;

since i cant write Ii or I(i) m confused how to assign names in a for loop..

thank u..