Division with negative powers

조회 수: 1 (최근 30일)
wqdw qdwdqww
wqdw qdwdqww 2018년 3월 20일
댓글: wqdw qdwdqww 2018년 3월 20일
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