How to draw a line on a symbolic surface

2 visualizaciones (últimos 30 días)
Rowan Humphreys
Rowan Humphreys el 18 de Nov. de 2021
Comentada: Rowan Humphreys el 18 de Nov. de 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);

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by