reshapeΒΆ
reshape creates a copy of a matrix and changes the number of columns and rows.
-
mNew = reshape(mOld, n, m)
Return Value
mNew is the copy of mOld with n rows and m columns.
Parameters
-
mOld
mOld is a real, complex or string matrix with n * m elements.
-
n
n is the number of rows of nNew.
-
m
m is the number of columns of nNew.
id-254777