The matrix constructor function returns the matrix composed by the rows . Arguments are appended row by row to the result object. Boolean values are going to be transformed in floating decimal form. Vector objects are going to be appended as a row. Matrix objects are going to be appended row by row beginning with the first.
Syntax
matrix
mat
Types
Variable Name | Value Type | Variable Type | ||
---|---|---|---|---|
Arguments: | x1 | real, complex | boolean, scalar, vector, matrix | |
: | ||||
xn | real, complex | boolean, scalar, vector, matrix | ||
Result: | z | real, complex | matrix |
Examples
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x1 | Argument | REAL | 1 | 1 | |
x2 | Argument | REAL | 2 | 2 | |
z | Result | REAL MATRIX |
| mat(x1, x2) |
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x1 | Argument | REAL VECTOR |
| [1,2] | |
x2 | Argument | REAL VECTOR | [3,4] | ||
z | Result | REAL MATRIX |
| mat(x1, x2) |