Hi,
can anybody help me with this, how do i assign a matrix to an indexed variable like the following in matlab-
>> for i=1:4
if(a==1)
b(i)=[0 1];
this returns error-
In an assignment A(I) = B, the number of elements in B and I must be the same.
I know b(i) must have same size of [0 1] matrix but then how do i assign b(i) to matrix?
thanks for helping
can anybody help me with this, how do i assign a matrix to an indexed variable like the following in matlab-
>> for i=1:4
if(a==1)
b(i)=[0 1];
this returns error-
In an assignment A(I) = B, the number of elements in B and I must be the same.
I know b(i) must have same size of [0 1] matrix but then how do i assign b(i) to matrix?
thanks for helping