MATLAB: How do i write a polynomial and take the derivative

derivativepolynomial

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?

Best Answer

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