array index - MATLAB Answers - MATLAB Central

array index - MATLAB Answers - MATLAB Central

瀏覽:1054
日期:2026-04-24
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...看更多