Converting a string array into a number array
6 次查看(过去 30 天)
显示 更早的评论
Please how can l convert '123456789' to [ 1 2 3 4 5 6 7 8 9] in MATLAB
0 个评论
采纳的回答
KALYAN ACHARJYA
2021-2-13
编辑:KALYAN ACHARJYA
2021-2-13
#Edited
num_str='123456789'
num_str - '0'
Result:
ans =
1 2 3 4 5 6 7 8 9
7 个评论
KALYAN ACHARJYA
2021-2-13
Yes sir @Jan Thanks, In day time, I have answered a similar question, which first required changing num2str, so I used it here by mistake.
Your teaching is very valuable, thank you and much appreciation
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!