string from a textbox
Mostrar comentarios más antiguos
hi. i want to extract 4,5,6,5 from string 4x^3 + 5x^2 + 6x^1 + 5
Respuestas (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:
Categorías
Más información sobre Operations on Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!