How do I extract the polynomial coefficients of s? ( s = tf('s') )

For example, p= 4 s^4 – s^3 + 8 s^2 + 9.

I want to get the vector [4 -1 8 0 9]

Function "coeffs" doesn't work : Undefined function 'coeffs' for input arguments of type 'tf'.

Skip to content# MATLAB: Polynomial coefficients in descending powers of s

###### Related Question

algorithmMATLABpolynomialvector

How do I extract the polynomial coefficients of s? ( s = tf('s') )

For example, p= 4 s^4 – s^3 + 8 s^2 + 9.

I want to get the vector [4 -1 8 0 9]

Function "coeffs" doesn't work : Undefined function 'coeffs' for input arguments of type 'tf'.

- Is there a function that let me turn a rational function to a polynomial in matlab
- How to input transfer function without simplifying it
- How to find roots of a polynomial with fractional orders
- How to get a vector with the coefficients from a transfer function
- Polynomial using linear least squares fitting
- How to find the roots of a symbolic polynimial
- How to design a PID Controller to stabllize the plant 1/(s^3+1) ? [beginner]
- Convert a transfer function to controllable and observable canonical form
- How to enter a transfer function without writing down the exponents

## Best Answer