How to draw a line on a symbolic surface

2 Ansichten (letzte 30 Tage)
Rowan Humphreys
Rowan Humphreys am 18 Nov. 2021
Kommentiert: Rowan Humphreys am 18 Nov. 2021
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);

Akzeptierte Antwort

John D'Errico
John D'Errico am 18 Nov. 2021
Bearbeitet: John D'Errico am 18 Nov. 2021
syms x1 x2
f1 = x1^2+x2^3-9
f1 = 
fsurf(f1);
hold on
fimplicit(f1,'r')
WTP? :)

Weitere Antworten (0)

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by