How can I merge two array's?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have two array and I want to merge in one . A =['test']; B= [1, 2, 3]; C= ['test', 1, 2, 3];
0 commentaires
Réponse acceptée
Adam
le 29 Oct 2015
{ A, B }
will merge them into a cell array as two distinct cells
[ A, num2cell( B ) ]
will give you a 4-element cell array with the elements of B each in their own cell.
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Software Development Tools dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!