MATLAB: The acos funtion will not accept negagive numbers (e.g. -075) . WHY

acos problem

>> x = -1:.05:1;
plot(x,acos(x))
grid on
Subscript indices must either be real positive integers or logicals.

Best Answer

You have either defined a variable named "acos" or a variable named "plot"