經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供