could anyone help me how to combine data in two columns

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

Stephan
Stephan il 29 Nov 2019
Res = [A B]
  2 Commenti
jaah navi
jaah navi il 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.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by