Tangent Line and Normal Line

3 ビュー (過去 30 日間)
ivi_
ivi_ 2024 年 2 月 3 日
編集済み: Sam Chak 2024 年 2 月 3 日
Can someone help me with this matlab script please.
  2 件のコメント
Dyuman Joshi
Dyuman Joshi 2024 年 2 月 3 日
> 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 2024 年 2 月 3 日
編集済み: Sam Chak 2024 年 2 月 3 日
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:

サインインしてコメントする。

回答 (1 件)

VBBV
VBBV 2024 年 2 月 3 日
f(x) = x^3 - 3*x + 2
instead of
f(x) = 3^x - 3*x + 2
  1 件のコメント
VBBV
VBBV 2024 年 2 月 3 日
編集済み: VBBV 2024 年 2 月 3 日
The function input for f(x) is incorrect

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by