how to covert char array to num array?
Mostra commenti meno recenti
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 Commenti
arr = ['some'; 'thee'; 'time'; 'hour']
mat = double(arr)
Walter Roberson
il 23 Feb 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 {}
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Data Type Conversion in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!