how to convert matrix size

3 次查看(过去 30 天)
I have a matrix s which has the size : 2882x2575 then I convert it to 7421150x1 by this:
s1=s(:);
and I did some process... now I need to convert it back s1 to 2882x2575 how can I do this ?

采纳的回答

Stephen23
Stephen23 2018-7-3
编辑:Stephen23 2018-7-3
reshape(s1,2882,2575)
or
reshape(s1,2575,2882).'
depending on the order you want.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by