Vector and Matrix Index Operator

The index operator [ ] returns elements of a matrix or a vector with [n] entries.

The numbering of the indices of an array is a zero-based numbering. Means the 1st entry of an array object is returned at .

Vector Index: x[i]

The operation x[i] returns the (i + 1)-th component of the input object x. i is the number of the index of the vector

 Variable NameValue TypeVariable Type
Arguments:xreal, complexvector
irealscalar
Result: zreal, complex scalar

Example:

IDDescriptionTypeValueExpression
x REAL VECTOR

[0,1,2]
i REAL00
z Result REAL 0 x[i]
Matrix Index: x[i,j]

The operation returns the matrix element of the (i + 1)-th row on the (j + 1)-th column of the matrix x.

The index of the rows is defined within and for the columns

 Variable NameValue TypeVariable Type
Arguments:xreal, complexmatrix
irealscalar
jrealscalar
Result: zreal, complex scalar

Example:

IDDescriptionTypeValueExpression
xArgumentREAL MATRIX

[[1,2],[3,4],[5,6]]
iArgumentREAL00
jArgumentREAL11
z Result REAL 2x[i,j]
Matrix Index: x[i,]

The operation x[i,] returns the (i+1)-th row the matrix, xy-data or signal x.

 Variable NameValue TypeVariable Type
Arguments:xreal, complexmatrix
irealscalar
Result: zreal, complex vector

Example:

IDDescriptionTypeValueExpression
xArgumentREAL MATRIX

[[1,2],[3,4],[5,6]]
iArgumentREAL00
z Result REAL VECTOR

x[i,]
Matrix Index: x[,j]

The operation x[,j] returns the (j+1)-th row the matrix, xy-data or signal x.

 Variable NameValue TypeVariable Type
Arguments:xreal, complexmatrix
irealscalar
Result: z real, complex vector

Example:

IDDescriptionTypeValueExpression
xArgumentREAL MATRIX

[[1,2],[3,4],[5,6]]
iArgumentREAL11
z Result REAL VECTOR

x[,i]