matrix

Parent Previous Next

matrix

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

Turns an array into a matrix

arg

type

Description

Unit or Value scale

x

VCT or AUD

input array


m

SCAL

Number of rows (also known as the number of "groups")


Outputs

  • y is a matrix with m rows.

Notes

  • The length of x must be a multiple of m. Number of columns is (length of x) / m

Examples

  • (1:12).matrix(3) →

1 2 3 4
5 6 7 8
9 10 11 12

See Also

Created with the Personal Edition of HelpNDoc: Full-featured EPub generator