Solving equation for a value of x

2 ビュー (過去 30 日間)
ali koulani
ali koulani 2020 年 12 月 8 日
回答済み: XueHuang 2023 年 11 月 10 日
hi everyone
this is a pretty basic question but i couldnt find an answer to it
i have a 5th order polynomial function g(x) which im trying to find the slope of it at a given point x = 20
im using matlab R2020a

採用された回答

Stephan
Stephan 2020 年 12 月 8 日
編集済み: Stephan 2020 年 12 月 8 日
You can use polyder, that calculates the derivative of a polynomial and then you can calculate the result at x=20 using polyval.
  1 件のコメント
ali koulani
ali koulani 2020 年 12 月 8 日
THANKS !

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

その他の回答 (1 件)

XueHuang
XueHuang 2023 年 11 月 10 日
您可以使用polyder计算多项式的导数,然后可以使用polyval计算x=20时的结果.
polyval(polyder(x,a),20);就是这样的

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by