range in symbolic form
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 11 de Jul. de 2019
ch = children(solution);
[children(ch(1)),children(ch(2))]
4 comentarios
riccardo agnesi
el 11 de Jul. de 2019
Walter Roberson
el 11 de Jul. de 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
el 12 de Jul. de 2019
Walter Roberson
el 8 de Ag. de 2019
I don't think I have a virtual machine for a MATLAB that old...
Categorías
Más información sobre Utilities for the Solver en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!