Use the subscript operator ([ ]) to pick out elements or submatrices from matrices. The Subscript() function is usually written as a bracket notation after the matrix to be subscripted, with arguments for rows and columns.
The expression A[i,j] extracts the element in row i, column j, returning a scalar number. The equivalent functional form is Subscript(A,i,j).
Assign the value that is in the third row and the first column in the matrix A (which is 5) to the variable test.
Show( test );
A single subscript addresses matrices as if all the rows were connected end-to-end in a single row. This makes the double subscript A[i,j] the same as the single subscript A[(i-1)*ncol(A)+j].
ii = [5 7 9];
Subscript( Q, ii );
Show( P );
Show( P );
Show( P );
Show( P );
Show( P );
You can use operator assignments (such as +=) on matrices or subscripts of matrices. For example, the following statement adds 1 to the i - jth element of the matrix:
Show( P );
Show( P );
If you are working with a range of subscripts, use the Index() function or :: to create matrices of ranges.
T = T1 |/ T2 |/ T3; // concatenates the vectors into a single matrix