deconv result does not match with polynomial division.

조회 수: 1 (최근 30일)
Seetha Rama Raju Sanapala
Seetha Rama Raju Sanapala 2015년 4월 12일
편집: Jan 2015년 4월 12일
I wanted to divide x^2+5x+6 by x+1 and get the quotient and remainder and used deconv as below.
[q,r]=deconv([6 5 1], [1 1])
I expected the answer to be
q = [4 1] and r = 2. But what I got was
q = [6 -1] and r = [0 0 2]. What are the comments on this result?

채택된 답변

Jan
Jan 2015년 4월 12일
편집: Jan 2015년 4월 12일
The coefficients of the polynomials are defined in the opposite direction, such that x^2+5x+6 is [1, 5, 6]:
[q, r] = deconv([1, 5, 6], [1, 1])
q =
1 4
r =
0 0 2

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by