Get the real function output to simplify without the real function in the output.
Mostrar comentarios más antiguos
I am trying to get matlab to take the real part of a function. However, I want the output to not contain the real function in the answer. I am trying to do this for optimization via BARON and BARON does not handle having the real function in the objective function. The variables I am dealing with are real and nonnegative, and I declare the symbolic variables to be as such. How do I get the real function output to not contain the real function.
Respuestas (1)
Jonas
el 28 de Jun. de 2021
realPart=z-imag(z);
has no real() function
Categorías
Más información sobre MATLAB 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!