MUPAD: plotting the intersection of two functions
Mostrar comentarios más antiguos
Dear sirs,
the problem I would like to solve is related to representation of constrained optimization problems in MUPAD, but in broader terms, this could apply to a variety of cases.
To exemplify, my problem is to trace on the surface of a target function like, for instance, z = x^2+y^2 its intersection with, say, a plane (the constraint) that according to its inclination would result on the surface of the target function in an ellipse, a circle or a parabola.
Of course, in a more general setting, the constraint itself needs not be linear.
The natural choice would seem plot::curve3d, but I am unable to parametrize the constraint function, particularly when it is a quadratic function such as an ellipse or a circle.
Also, all my initial equations are expressed in Cartesian coordinates.
Thanks to anyone who would share any useful suggestion on the subject.
Respuestas (1)
Christopher Creutzig
el 28 de Abr. de 2011
0 votos
For the special case of intersecting with an axes-parallel plane, it may be worth checking out the second example in the documentation of plot::Scene3d. For the general case, I am afraid there is no generic ready solution.
Categorías
Más información sobre 2-D Function Plots en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!