How can I concatenate these two arrays in this manner?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lets say I have the following two arrays:
A = [0.707, -0.707]; B = [0, 2];
and I want to concatenate them such that the result is:
C = [0.707, 0 , -0.707 , 2];
I have tried every trick but no luck so far. Any ideas? While there is probably a way to concatenate the two manually, I want a process that works on any matrices of different lengths, etc.
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!