MATLAB Answers

could anyone help me how to combine data in two columns

2 views (last 30 days)
jaah navi
jaah navi on 29 Nov 2019
Commented: Stephan on 29 Nov 2019
A=[1;
2;
3]
B=[4 ;
5;
6]
I want to have the result in the following manner
[1 4;
2 5;
3 6]
could anyone please help me on this.

  0 Comments

Sign in to comment.

Accepted Answer

Stephan
Stephan on 29 Nov 2019
Res = [A B]

  2 Comments

jaah navi
jaah navi on 29 Nov 2019
sorry i made a mistake
If
A=[1 2 3]
and
B=[4 5 6]
i need to have the result in the following manner
[1 4;
2 5;
3 6]
Could you please help me on this.

Sign in to comment.

More Answers (0)


Translated by