MATLAB Answers

how to reshape this matrix

2 views (last 30 days)
Jassy
Jassy on 2 Jun 2019
Commented: 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.

Accepted Answer

James Tursa
James Tursa on 2 Jun 2019
result = reshape(A.',2,[]).'

  1 Comment

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

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags