string from a textbox
Mostra commenti meno recenti
hi. i want to extract 4,5,6,5 from string 4x^3 + 5x^2 + 6x^1 + 5
Risposte (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:
Categorie
Scopri di più su Operations on Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!