# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English version of the page.

# deconv

Deconvolution and polynomial division

## Syntax

``````[q,r] = deconv(u,v)``````

## Description

example

``````[q,r] = deconv(u,v)``` deconvolves a vector `v` out of a vector `u` using long division, and returns the quotient `q` and remainder `r` such that `u = conv(v,q)+r`. If `u` and `v` are vectors of polynomial coefficients, then deconvolving them is equivalent to dividing the polynomial represented by `u` by the polynomial represented by `v`.```

## Examples

collapse all

Create two vectors `u` and `v` containing the coefficients of the polynomials and , respectively. Divide the first polynomial by the second by deconvolving `v` out of `u`, which results in quotient coefficients corresponding to the polynomial and remainder coefficients corresponding to .

```u = [2 7 4 9]; v = [1 0 1]; [q,r] = deconv(u,v)```
```q = 1×2 2 7 ```
```r = 1×4 0 0 2 2 ```

## Input Arguments

collapse all

Input vectors, specified as either row or column vectors. `u` and `v` can be different lengths or data types. If one or both of `u` and `v` are of type single, then the output is also of type single. Otherwise, `deconv` returns type `double`.

Data Types: `double` | `single`
Complex Number Support: Yes

## Output Arguments

collapse all

Quotient, returned as a row or column vector such that ```u = conv(v,q)+r```.

Data Types: `double` | `single`

Remainder, returned as a row or column vector such that ```u = conv(v,q)+r```.

Data Types: `double` | `single`