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!