Separating string element by two and creating a vector in Simulink
1 回表示 (過去 30 日間)
古いコメントを表示
How do I convert the following string element into vector?

2 件のコメント
Kevin Joshi
2020 年 6 月 1 日
Use str2num to convert it to number... Use the div or mod logic to convert it to 2 digits...
採用された回答
Ameer Hamza
2020 年 6 月 1 日
See the attached file (created in R2019b). The following image also shows the block needed to do the conversion.

0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で String についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!