N=40a=0.9x =zeros(41,41)for k=0:N for col = 0:41 for row = 0:41 x(row,col)=a.^(k+k)*1; end endend
What is the problem (error: x(0,_): subscripts must be either integers 1 to (2^31)-1 or logicals)?
array
N=40a=0.9x =zeros(41,41)for k=0:N for col = 0:41 for row = 0:41 x(row,col)=a.^(k+k)*1; end endend
Best Answer