Solving equation for a value of x

2 vues (au cours des 30 derniers jours)
ali koulani
ali koulani le 8 Déc 2020
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

Réponse acceptée

Stephan
Stephan le 8 Déc 2020
Modifié(e) : Stephan le 8 Déc 2020
You can use polyder, that calculates the derivative of a polynomial and then you can calculate the result at x=20 using polyval.

Plus de réponses (1)

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

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox 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