Output of Deconv function Matlab

2 ビュー (過去 30 日間)
Aleem Andrew
Aleem Andrew 2021 年 4 月 30 日
編集済み: David Goodmanson 2021 年 5 月 1 日
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

回答 (1 件)

David Goodmanson
David Goodmanson 2021 年 5 月 1 日
編集済み: David Goodmanson 2021 年 5 月 1 日
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

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by