From: George on 11 Jun 2010 12:50 Hi guys, I have a question dealing with arrays. Here it go: Suppose A is a 3 by 1 array, I want to assign A (1,1) a 5 by 1 array B, can I do this? How? Thanks in advance!
From: Wayne King on 11 Jun 2010 13:02 "George " <guanjihou(a)gmail.com> wrote in message <hutpgd$km$1(a)fred.mathworks.com>... > Hi guys, > > I have a question dealing with arrays. Here it go: > > Suppose A is a 3 by 1 array, I want to assign A (1,1) a 5 by 1 array B, can I do this? How? > > Thanks in advance! Hi George, make A a cell array A = cell(3,1); B = randn(5,1); A{1} = B; Wayne
From: Matt Fig on 11 Jun 2010 13:05 % Use a cell array. A = cell(3,1); A{1} = rand(5,1); % Now look A{1}
From: George on 11 Jun 2010 13:12 > > Hi George, make A a cell array > > A = cell(3,1); > B = randn(5,1); > A{1} = B; > > Wayne Thanks Wayne, it really helps.
From: George on 11 Jun 2010 13:35 "Matt Fig" <spamanon(a)yahoo.com> wrote in message <hutqch$rai$1(a)fred.mathworks.com>... > % Use a cell array. > A = cell(3,1); > A{1} = rand(5,1); > > % Now look > A{1} Thanks Matt.
|
Next
|
Last
Pages: 1 2 Prev: Importing from Excel - storing each sheet as a separate variable Next: Use of isprop |