how to covert char array to num array?
Ältere Kommentare anzeigen
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 Kommentare
arr = ['some'; 'thee'; 'time'; 'hour']
mat = double(arr)
Walter Roberson
am 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 {}
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!