How do i write a polynomial and take the derivative?

I want to take the derivative of a polynomial, but Im not sure how to write the polynomial in the script T(A)=A^3 - A^2 - A -1. For the derivative do i use Polyder?

 Accepted Answer

>> T = [1 -1 -1 -1]
T =
1 -1 -1 -1
>> dT = polyder(T)
dT =
3 -2 -1

More Answers (0)

Categories

Asked:

on 6 Oct 2019

Answered:

on 6 Oct 2019

Community Treasure Hunt

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

Start Hunting!