How to convert '123' to [1,2,3]?
3 views (last 30 days)
Show older comments
How to convert '123' to [1,2,3]? Which is the shortest way?
0 Comments
Accepted Answer
Image Analyst
on 12 Dec 2017
For single digits like you have, subtract '0':
s = '123'
numbers = s - '0'
1 Comment
More Answers (0)
See Also
Categories
Find more on Dates and Time 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!