Tangent Line and Normal Line

2 vues (au cours des 30 derniers jours)
ivi_
ivi_ le 3 Fév 2024
Modifié(e) : Sam Chak le 3 Fév 2024
Can someone help me with this matlab script please.
  2 commentaires
Dyuman Joshi
Dyuman Joshi le 3 Fév 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 le 3 Fév 2024
Modifié(e) : Sam Chak le 3 Fév 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:

Connectez-vous pour commenter.

Réponses (1)

VBBV
VBBV le 3 Fév 2024
f(x) = x^3 - 3*x + 2
instead of
f(x) = 3^x - 3*x + 2
  1 commentaire
VBBV
VBBV le 3 Fév 2024
Modifié(e) : VBBV le 3 Fév 2024
The function input for f(x) is incorrect

Connectez-vous pour commenter.

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by