/usr/share/freemat/help/text/reshape.mdc is in freemat-help 4.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | RESHAPE RESHAPE Reshape An Array
Usage
Reshapes an array from one size to another. Two seperate
syntaxes are possible. The first syntax specifies the array
dimensions as a sequence of scalar dimensions:
y = reshape(x,d1,d2,...,dn).
The resulting array has the given dimensions, and is filled with
the contents of x. The type of y is the same as x.
The second syntax specifies the array dimensions as a vector,
where each element in the vector specifies a dimension length:
y = reshape(x,[d1,d2,...,dn]).
This syntax is more convenient for calling reshape using a
variable for the argument. The
reshape function requires that the length of x equal the product
of the di values.
Note that arrays are stored in column format,
which means that elements in x are transferred to the new array
y starting with the first column first element, then proceeding to
the last element of the first column, then the first element of the
second column, etc.
|