How to draw a line on a symbolic surface

2 vues (au cours des 30 derniers jours)
Rowan Humphreys
Rowan Humphreys le 18 Nov 2021
Commenté : Rowan Humphreys le 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);

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by