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!