range in symbolic form
이전 댓글 표시
I have this problem:
solution=feval(symengine, 'solve', '(abs(8/(k1+1)))<1', 'k1', 'Real')
solution = (7, Inf) union (-Inf, -9)
The solution is symbolic, but I need to have the two range in numeric form (array?) inside a script. Do I have to write about ten lines of code to do it? Thank you
채택된 답변
추가 답변 (1개)
Walter Roberson
2019년 7월 11일
ch = children(solution);
[children(ch(1)),children(ch(2))]
댓글 수: 4
riccardo agnesi
2019년 7월 11일
Walter Roberson
2019년 7월 11일
You might have a corrupt MATLAB installation.
... Or you might have forgotten to mention that you are using a version before R2012a, which would be important information in order to know how to solve the difficulty.
riccardo agnesi
2019년 7월 12일
Walter Roberson
2019년 8월 8일
I don't think I have a virtual machine for a MATLAB that old...
카테고리
도움말 센터 및 File Exchange에서 Utilities for the Solver에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!