range in symbolic form
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 11 Juil 2019
ch = children(solution);
[children(ch(1)),children(ch(2))]
4 commentaires
riccardo agnesi
le 11 Juil 2019
Walter Roberson
le 11 Juil 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
le 12 Juil 2019
Walter Roberson
le 8 Août 2019
I don't think I have a virtual machine for a MATLAB that old...
Catégories
En savoir plus sur Utilities for the Solver dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!