This error may occur in the following situations:
Remarks
Matrices are zero-based, meaning that their first row or column is 0. The last row of a matrix with n rows is row n-1.
To solve this problem
Use parameter values within matrix size.
Item Property | RowVector Method | SwapCols, SwapRows Method