Division with negative powers

1 次查看(过去 30 天)
So let's say the first polynomial is [ 1 0 1] and I divide it to [1 4 4 4 3] and the results should be [0 0 1 -4 13 -40 121 -364] the first 2 zeros are because x^0 and x^-1 have the quotient 0. How can this be done in matlab? deconv function only returns x at positive powers

采纳的回答

C.J. Harris
C.J. Harris 2018-3-20
u = [0 0 1 0 1];
v = [1 4 4 4 3];
Result = filter(u,v,[1, zeros(1,7)])
ans =
0 0 1 -4 13 -40 121 -364

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by