range in symbolic form
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 11 Jul. 2019
ch = children(solution);
[children(ch(1)),children(ch(2))]
4 Kommentare
riccardo agnesi
am 11 Jul. 2019
Walter Roberson
am 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
am 12 Jul. 2019
Walter Roberson
am 8 Aug. 2019
I don't think I have a virtual machine for a MATLAB that old...
Kategorien
Mehr zu Utilities for the Solver finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!