Merge two vectors into matrix
404 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a time vector of 1x1024 double and an amplitude vector of 1024x1 double. How do I combine these vectors into a single matrix?
0 commentaires
Réponses (3)
Idan Cohen
le 22 Avr 2020
Hi,
I have a similar question. I have three vectors - X, Y and Z.
How can I merge these vectors into on matris so I can plot 3-D surf graph?
Thanks.
0 commentaires
Von Duesenberg
le 21 Jan 2017
Something like this?
vector1 = rand(1024,1);
vector2 = rand(1, 1024);
newVector = [vector1 vector2'];
3 commentaires
Mohammed Ayoub
le 7 Fév 2018
Use "horzcat" command after transposing one of the vector. The result will be horizontally concatenates arrays. Thanks
Voir également
Catégories
En savoir plus sur Discrete Data Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!