Attempted to access A(-1); index must be a positive integer or logical.
Re: Attempted to access A(-1); index must be a positive integer or logical.
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
The index of matrix must be bigger than zero and muse be an integer
Who is online
Users browsing this forum: No registered users and 17 guests