 |
array index - MATLAB Answers - MATLAB Central
Hi, I have declared the size of array as 4*4.When i run the third for loop the size of array becomes 49*49.Dont know why this happens in that loop? pat1='11'; arr=zeros(4,4); len=length(pat1); for i=1:4 for j=1:4 arr(i,j)=l+2; end end
www.mathworks.com |
 |