<< repmat | elementary functions | round >> |
M2 = reshape(M1, s1, ... ,sN) |
M2 = reshape(M1, ..., [], ...) |
M2 = reshape(M1, size) |
a vector or an matrix
a size vector
a s1 - by - ... - by - sN array where s1, ..., sN indicates the size of each dimension.
Matrix reshaped
reshape performs a reshape to a different size matrix. If only one dimension is specified, reshape will determine complementary size automatically. [ ] is used to unspecify the dimension.
M1 = ones(3, 4, 5);
M2 = reshape(M1, [5, 3, 4])
M2 = reshape(M1, 5, [], 4)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET