From: Kunal Matharu on
m=5;
z=1:m;
x=1:(m+1);
x(1)=0;

for k=1:m
x(k+1)= k*(1/m);
z(k)=((x*(k))+(x*(k+1)))/2;
end
sum(z);

??? In an assignment A(I) = B, the number of elements in B and
I must be the same.


I get a weird msg but i dont see where i went wrong can anyone help me out.