Page 1 of 1

Attempted to access A(-1); index must be a positive integer or logical.

Posted: Fri Dec 16, 2016 9:32 pm
by matlab1
t

Re: Attempted to access A(-1); index must be a positive integer or logical.

Posted: Wed Aug 26, 2020 3:40 am
by matlab1
This error appears, when the index of an array is negative and as you know, the index of a matrix can not be negative or zero in MATLAB.

The index of matrix must be bigger than zero and muse be an integer