Tangent Line and Normal Line

4 Ansichten (letzte 30 Tage)
ivi_
ivi_ am 3 Feb. 2024
Bearbeitet: Sam Chak am 3 Feb. 2024
Can someone help me with this matlab script please.
  2 Kommentare
Dyuman Joshi
Dyuman Joshi am 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 am 3 Feb. 2024
Bearbeitet: Sam Chak am 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:

Melden Sie sich an, um zu kommentieren.

Antworten (1)

VBBV
VBBV am 3 Feb. 2024
f(x) = x^3 - 3*x + 2
instead of
f(x) = 3^x - 3*x + 2
  1 Kommentar
VBBV
VBBV am 3 Feb. 2024
Bearbeitet: VBBV am 3 Feb. 2024
The function input for f(x) is incorrect

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by