My code is like
I=zeros(1,5); for i=1:4 [ma,I(i)]=max(areas);end
Error: "In an assignment A(I) = B, the number of elements in B and I must be the same." [ma,I(i)]=max(areas); the second argument y in [x,y]=max(a) is a single element and I am trying to send single element only right?
Best Answer