string from a textbox
Afficher commentaires plus anciens
hi. i want to extract 4,5,6,5 from string 4x^3 + 5x^2 + 6x^1 + 5
Réponses (2)
str = '4x^3 + 5x^2 + 6x^1 + 5'
num = regexp(str,'(?<!\^)(\d)','match');
If you are using symbolic toolbox then you could use the appropriate function:
Catégories
En savoir plus sur Operations on Strings 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!