MUPAD: plotting the intersection of two functions
조회 수: 4 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
Christopher Creutzig
2011년 4월 28일
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.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!