How to draw a line on a symbolic surface

1 visualizzazione (ultimi 30 giorni)
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);

Risposta accettata

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

Più risposte (0)

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by