how to covert char array to num array?
Mostrar comentarios más antiguos
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 comentarios
arr = ['some'; 'thee'; 'time'; 'hour']
mat = double(arr)
Walter Roberson
el 23 de Feb. de 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 {}
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!