Tangent Line and Normal Line

5 visualizaciones (últimos 30 días)
ivi_
ivi_ el 3 de Feb. de 2024
Editada: Sam Chak el 3 de Feb. de 2024
Can someone help me with this matlab script please.
  2 comentarios
Dyuman Joshi
Dyuman Joshi el 3 de Feb. de 2024
> Use diff, instead of defining the first derivative manually. Same for y0 and m, use the variables to obtain the corresponding values. DO NOT hard-code values.
> Use fplot over ezplot
Sam Chak
Sam Chak el 3 de Feb. de 2024
Editada: Sam Chak el 3 de Feb. de 2024
Is there a MATLAB function to find the normal line directly from the given coefficients? I believe we can do that using matrix algebra and rotation matrix.
Update:
Tangent line:
Normal line:

Iniciar sesión para comentar.

Respuestas (1)

VBBV
VBBV el 3 de Feb. de 2024
f(x) = x^3 - 3*x + 2
instead of
f(x) = 3^x - 3*x + 2
  1 comentario
VBBV
VBBV el 3 de Feb. de 2024
Editada: VBBV el 3 de Feb. de 2024
The function input for f(x) is incorrect

Iniciar sesión para comentar.

Categorías

Más información sobre Linear Algebra en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by