range in symbolic form
Show older comments
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
Accepted Answer
More Answers (1)
Walter Roberson
on 11 Jul 2019
ch = children(solution);
[children(ch(1)),children(ch(2))]
4 Comments
riccardo agnesi
on 11 Jul 2019
Walter Roberson
on 11 Jul 2019
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
on 12 Jul 2019
Walter Roberson
on 8 Aug 2019
I don't think I have a virtual machine for a MATLAB that old...
Categories
Find more on Utilities for the Solver in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!