MATLAB Answers

Jassy
0

how to reshape this matrix

Asked by Jassy
on 2 Jun 2019
Latest activity Commented on by Jassy
on 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.

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by James Tursa
on 2 Jun 2019
 Accepted Answer

result = reshape(A.',2,[]).'

  1 Comment

Jassy
on 2 Jun 2019
Thank you James Tursa.
It's help me

Sign in to comment.