MATLAB: Index exceeds array bound meaning

index-error

what is the meaning of index exceeds array bound

Best Answer

It means that the index number is more than the array elements.
An example:
x=[1:10]
x(11)
Your array has 10 elements but you try accessing the 11th element.