Remove Redundant Parentheses from String Expression
조회 수: 5 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Image Analyst
2016년 6월 8일
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
Star Strider
2016년 6월 10일
@S H —
Don’t get cheeky.
Revise the documentation for the Symbolic Math Toolbox simplify function.
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!