could anyone help me how to combine data in two columns

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.

 Accepted Answer

Res = [A B]

2 Comments

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)

Categories

Asked:

on 29 Nov 2019

Commented:

on 29 Nov 2019

Community Treasure Hunt

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

Start Hunting!