I have 2 vectors of size 1x90.
I have to do the operator
diff=sum((V_new-V).^2);
But every time i do it i get the error:
Subscript indices must either be real positive integers or logical.
How can i fix this problem and prevent it from occurring again?