# polydiv

## Syntax

## Description

`[`

divides the polynomial represented by coefficient vector `q`

,`r`

] = polydiv(`b`

,`a`

)`b`

by the
polynomial represented by coefficient vector `a`

. The results are the
quotient polynomial represented by coefficient vector `q`

and the remainder
polynomial represented by coefficient vector `r`

such that ```
b =
conv(a,q) + r
```

.

## Examples

## Input Arguments

## Output Arguments

## Tips

`[q,r] = polydiv(b,a)`

is equivalent to deconvolving vector`a`

out of vector`b`

using the polynomial long division method. However, using polynomial long division to find deconvolutions can result in numerically unstable results. For more numerically stable computations in finding the deconvolutions, use the least-squares method instead, as provided in the`deconv`

function.

## Version History

**Introduced in R2024a**