How to combine two arrays?
300 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have two arrays
x = 561x1 double
y = 561x1 double
How can i combine it into
z = 561x2 double
Risposta accettata
Più risposte (1)
Opeyemi Kehinde
il 17 Dic 2021
This will combine everything vertically
ba=rand(5,1);
bc=rand(5,1);
bd=cat(1,ba,bc)
and this will combine them horizontally
ba=rand(5,1);
bc=rand(5,1);
bd=cat(2,ba,bc)
0 Commenti
Vedere anche
Categorie
Scopri di più su Whos in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!