Separating string element by two and creating a vector in Simulink
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Berke Ogulcan Parlak
am 31 Mai 2020
Beantwortet: Ameer Hamza
am 1 Jun. 2020
How do I convert the following string element into vector?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/306863/image.png)
2 Kommentare
Kevin Joshi
am 1 Jun. 2020
Use str2num to convert it to number... Use the div or mod logic to convert it to 2 digits...
Akzeptierte Antwort
Ameer Hamza
am 1 Jun. 2020
See the attached file (created in R2019b). The following image also shows the block needed to do the conversion.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/307655/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/307655/image.png)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu String finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!