How to draw a line on a symbolic surface

5 views (last 30 days)
I would really like a line running along the surface below at all points where f1=0. kind of like a contour line in 3d.
syms x1 x2
f1 = x1^2+x2^3-9
f1 = 
fsurf(f1);

Accepted Answer

John D'Errico
John D'Errico on 18 Nov 2021
Edited: John D'Errico on 18 Nov 2021
syms x1 x2
f1 = x1^2+x2^3-9
f1 = 
fsurf(f1);
hold on
fimplicit(f1,'r')
WTP? :)
  1 Comment
Rowan Humphreys
Rowan Humphreys on 18 Nov 2021
You are a gift from god himself. Thank you so much.

Sign in to comment.

More Answers (0)

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!