I'm just trying to execute a simple for loop, but I keep getting this error "Attempted to access x(2); index out of bounds because numel(x)=1.
Error in Quiz (line 11) x = x(i)" I don't understand what the error means. Any help would be appreciated!
x = [22.5 45 67.5 90]
for i=1:4 x = x(i) a = a(x) c = c(x) alpha = alpha(x) mu(a,c) end
No products are associated with this question.
After one itteration
for i=1:4 x = x(i)
the length of x becomes equal to 1, then x(2) does not exist