how to covert char array to num array?
Show older comments
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 Comments
arr = ['some'; 'thee'; 'time'; 'hour']
mat = double(arr)
Walter Roberson
on 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 {}
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!