how to reshape this matrix

9 Ansichten (letzte 30 Tage)
Jassy
Jassy am 2 Jun. 2019
Kommentiert: Jassy am 2 Jun. 2019
A = [ 1 2 3 4 5 6 7 8 9 10; 11 12 13 14 15 16 17 18 19 20;]
I want reshape to
1 2;
3 4;
5 6;
7 8;
.
.
.
19 20;
thank you sir.

Akzeptierte Antwort

James Tursa
James Tursa am 2 Jun. 2019
result = reshape(A.',2,[]).'
  1 Kommentar
Jassy
Jassy am 2 Jun. 2019
Thank you James Tursa.
It's help me

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by