merge number and character
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi, how i can merge this x=3 y='-'
when do z=[x y] i get z =
- this symbol is appearing as square in command of matlab i need the result be 3 - how get that?
thanks
Réponse acceptée
Walter Roberson
le 4 Mai 2012
You cannot. Anyone one array can be numeric or character, but not both at the same time.
Perhaps you want
z = [num2str(x) y];
0 commentaires
Plus de 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!