add character cells arrays
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
we have a character cell [d d d d] and [d -d d -d]. how can we get [d+d d-d d+d d-d].
0 commentaires
Réponses (1)
Walter Roberson
le 23 Nov 2016
first = {'d', 'd', 'd', 'd'};
second = {'d', '-d', 'd', '-d'};
result = regexprep(strcat(first(:), {'+'}, second(:)), '+-', '-').' ;
0 commentaires
Voir également
Catégories
En savoir plus sur Matrices and Arrays 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!