Separating string element by two and creating a vector in Simulink
조회 수: 3 (최근 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!