polyderPolynomial Differentiation
q = polyder(p)p should be a vector, real or complex, containing coefficients of the polynomial with p(1) and p(end) being the highest and the zeroth order terms, respectively:q contains the coefficients of the derivativeq = polyder(a,b)a and b should be vectors, real or complex, containing coefficients of the polynomials q is the derivative of the product [q,d] = polyder(a,b)a and b should be vectors, real or complex, containing the coefficients of the polynomials q and d represent the polynomials polyder(1:5)
ans =
4.000 6.000 6.000 4.000
polyder(a, b) differentiates the product of the polynomials given by a and b.% Derivative of the product of a and b.
a=1:5;
b=1:2;
q1 = polyder(a, b)
% The above is the same as differentiation
% after polynomial multiplication using conv().
q2 = polyder(conv(a, b))
q1 =
5.000 16.00 21.00 20.00 13.00
q2 =
5.000 16.00 21.00 20.00 13.00
| Empty array as input | Non-vector input | |
|---|---|---|
| MATLAB | Returning 0 | The input is reshaped to a vector |
| SIMO | Not allowed | Not allowed |