Separating string element by two and creating a vector in Simulink

3 vues (au cours des 30 derniers jours)
How do I convert the following string element into vector?
  2 commentaires
Kevin Joshi
Kevin Joshi le 1 Juin 2020
Use str2num to convert it to number... Use the div or mod logic to convert it to 2 digits...
Berke Ogulcan Parlak
Berke Ogulcan Parlak le 1 Juin 2020
How can I use str2num in Simulink?

Connectez-vous pour commenter.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 1 Juin 2020
See the attached file (created in R2019b). The following image also shows the block needed to do the conversion.

Plus de réponses (0)

Produits


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by