matrix
Turns an array into a matrix
Syntax
y = matrix ( x,m )
y = x.matrix ( m )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
x | vector or audio | input array | n/a |
m | scalar | Number of rows (also known as the number of "groups") | - |
Outputs / Return Value
y:yis a matrix withmrows.
Notes
- The length of
xmust be a multiple ofm. Number of columns is (length ofx) /m
Examples
(1:12).matrix(3) →
<p style="padding-left: 30px;">1 2 3 4
5 6 7 8
9 10 11 12</p>
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.