Remove Redundant Parentheses from String Expression
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
String contains a long expression. Part of it is:
'...+(G0*(G1-G2+G3))+((G4*(G5+G6)))-(((G7+G8))*((G9+G10+G11)))+...'
The redundant parentheses could be removed and the expression should look like:
'...+G0*(G1-G2+G3)+G4*(G5+G6)-(G7+G8)*(G9+G10+G11)+...'
Is there a simple Matlab script to do this?
5 Commenti
Risposte (1)
Image Analyst
il 8 Giu 2016
Recall that Azzi answered this, or something pretty much similar, and you accepted his answer in http://www.mathworks.com/matlabcentral/answers/287777#answer_224489
4 Commenti
Star Strider
il 10 Giu 2016
@S H —
Don’t get cheeky.
Revise the documentation for the Symbolic Math Toolbox simplify function.
Vedere anche
Categorie
Scopri di più su String Parsing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!