Tangent Line and Normal Line

4 visualizzazioni (ultimi 30 giorni)
ivi_
ivi_ il 3 Feb 2024
Modificato: Sam Chak il 3 Feb 2024
Can someone help me with this matlab script please.
  2 Commenti
Dyuman Joshi
Dyuman Joshi il 3 Feb 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 il 3 Feb 2024
Modificato: Sam Chak il 3 Feb 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:

Accedi per commentare.

Risposte (1)

VBBV
VBBV il 3 Feb 2024
f(x) = x^3 - 3*x + 2
instead of
f(x) = 3^x - 3*x + 2
  1 Commento
VBBV
VBBV il 3 Feb 2024
Modificato: VBBV il 3 Feb 2024
The function input for f(x) is incorrect

Accedi per commentare.

Categorie

Scopri di più su Linear Algebra in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by