how to convert matrix size

2 Ansichten (letzte 30 Tage)
Reema Alhassan
Reema Alhassan am 3 Jul. 2018
Kommentiert: Reema Alhassan am 3 Jul. 2018
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 ?

Akzeptierte Antwort

Stephen23
Stephen23 am 3 Jul. 2018
Bearbeitet: Stephen23 am 3 Jul. 2018
reshape(s1,2882,2575)
or
reshape(s1,2575,2882).'
depending on the order you want.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by