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!