how to covert char array to num array?
Afficher commentaires plus anciens
how do i convert char array to num array?
arr = ['some'; 'thee'; 'time'; 'hour']
I need a way to convert into the ascii values of these char.
2 commentaires
arr = ['some'; 'thee'; 'time'; 'hour']
mat = double(arr)
Walter Roberson
le 23 Fév 2021
The original version had 'the' instead of 'thee' so it could not be represented as a character array... which is why David answered with {}
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Type Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!