# Using deconv to divide vectors if the numerator has a smaller degree than the denominator

1 visualización (últimos 30 días)
Aleem Andrew el 15 de Mzo. de 2021
Respondida: Aghamarsh Varanasi el 18 de Mzo. de 2021
When using deconv to divide two vectors the output is 0 if the numerator has a smaller degree than the denominator. Can you get the answer that is the equivalent of dividing a polynomial by another? For example, for the following program the answer would be equivalent to (s+3)/(s^3+17s^2+14s+8) rather than 0.
numg=[1 3]; deng=[1 7 14 8];
deconv(numg,deng)
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Respuestas (1)

Aghamarsh Varanasi el 18 de Mzo. de 2021
Hi,
'deconv' function returns two outputs. One is the quotient, returned as a row vector. The other output is the reminder as the row vector. For example,
numg=[1 3]; deng=[1 7 14 8];
[quotient, reminder] = deconv(numg,deng)
In this code, quotient = 0; reminder = [1, 3]
Hope this helps
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Categorías

Más información sobre Elementary Math en Help Center y File Exchange.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by