Prev: select features
Next: matlab program
From: Sofia Häggberg on 27 Jul 2010 10:44 a(i,b) = 1; if a=30x3000 (all elements are zero) b=1x30 (elements are such as: 1, 2, 3 ... ... 30) i=1 what will happen in this case I cannot get it. Thanks!
From: John D'Errico on 27 Jul 2010 10:51 "Sofia Häggberg" <hd.int.assNOSPAM(a)gmail.com> wrote in message <i2mrc5$ks6$1(a)fred.mathworks.com>... > a(i,b) = 1; > > if a=30x3000 (all elements are zero) > b=1x30 (elements are such as: 1, 2, 3 ... ... 30) > i=1 > > what will happen in this case I cannot get it. Why not try it and see what happens? John
From: Andy on 27 Jul 2010 10:53 "Sofia Häggberg" <hd.int.assNOSPAM(a)gmail.com> wrote in message <i2mrc5$ks6$1(a)fred.mathworks.com>... > a(i,b) = 1; > > if a=30x3000 (all elements are zero) > b=1x30 (elements are such as: 1, 2, 3 ... ... 30) > i=1 > > what will happen in this case I cannot get it. > > Thanks! It would be far quicker to just try a small sample of code than to post and wait for a response: a=rand(10,100); % smaller sample data b = 1:2:10; ix=3; % don't use i, which is ML's sqrt(-1) a(ix,b) = 2; % outside the range of rand, so you can see clearly the changes
|
Pages: 1 Prev: select features Next: matlab program |