M2 = reshape(M1, s1, ... ,sN)
M2 = reshape(M1, ..., [], ...)
M2 = reshape(M1, size)
| Paramètre | Description |
|---|---|
| M1 | a vector or an matrix |
| size | a size vector |
| s1, ... ,sN | a s1 - by - ... - by - sN array where s1, ..., sN indicates the size of each dimension. |
| Paramètre | Description |
|---|---|
| M2 | 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 | version initiale |