flatten
flatten(x)
Flatten a multi dimensional matrix into a single dimensional matrix.
Try it yourself:
$1 | a = [1, 2, 3; 4, 5, 6]
| |
$2 | size(a)
| |
$3 | b = flatten(a)
| |
$4 | size(b)
|
Flatten a multi dimensional matrix into a single dimensional matrix.
Try it yourself:
$1 | a = [1, 2, 3; 4, 5, 6]
| |
$2 | size(a)
| |
$3 | b = flatten(a)
| |
$4 | size(b)
|