Output of Deconv function Matlab

1 Ansicht (letzte 30 Tage)
Aleem Andrew
Aleem Andrew am 30 Apr. 2021
When you type the command deconv([1 -3 -52],[1 -4]) the answer is 1 1 which I did not expect since (x+1)(x-4) is not (x^2-3x-52). Can someone explain why?
>> deconv([1 -3 -52],[1 -4])
ans =
1 1
>> conv([1 1],[1 -4])
ans =
1 -3 -4

Antworten (1)

David Goodmanson
David Goodmanson am 1 Mai 2021
Bearbeitet: David Goodmanson am 1 Mai 2021
Hi Aleem,
[1 -4] does not divide evenly into [1 -3 -52] so there is a remainder:
[a b] = deconv([1 -3 -52],[1 -4]) % b is the remainder
a = 1 1
b = 0 0 -48
conv(a,[1 -4]) + b
ans = 1 -3 -52

Kategorien

Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by