matrix

Turns an array into a matrix

Syntax

y = matrix ( x,m )
y = x.matrix ( m )

Inputs

ArgumentTypeDescriptionUnit
xvector or audioinput arrayn/a
mscalarNumber of rows (also known as the number of "groups")-

Outputs / Return Value

Notes

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