How to extract a number from a string
Afficher commentaires plus anciens
I have this string:
" <li>Ponto de orvalho: 16° C</li>"
and I want to extract the number 16, but this number can change.
I was doing this: Torvalhoactual=str2num([tline(57),tline(58)]);
but since the number can change to 1 digital number this code crashes
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Programming Utilities dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!