MATRIX("NEGZEROPOS",order)
- is the size of the Negzeropos matrix.
Description
- This function gives the matrix of order 3 with the element 0,1 and -1.
- It is indicating the positive,negative and zero values of matrix.
- Here MATRIX("negzeropos") is showing the matrix of order3 only filled with the elements 0, 1 and -1.
- Suppose users need a matrix with only 0 and 1, then we can use the absolute value like $ABS.
- In the same way users also can get a number 1 matrix. Its syntax is MATRIX("ones")
Examples
- 1.MATRIX("negzeropos",4)
0 | -1 | 1 | 1 |
-1 | -1 | 0 | 1 |
-1 | 1 | 0 | -1 |
1 | 0 | 1 | 1 |
- 2.MATRIX("negzeropos",5).$(ABS)
0 | 1 | 1 | 1 | 0 |
1 | 1 | 1 | 1 | 0 |
1 | 1 | 1 | 1 | 1 |
1 | 0 | 1 | 1 | 1 |
0 | 1 | 0 | 1 | 1 |
- 3. MATRIX("ones",6)
1 | 1 | 1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 1 | 1 |