title: Divide two polynomials using MATLAB
body: <p>I want to divide <code>p(x)</code> by <code>q(x)</code> given that:</p>
  
  <pre><code>p(x)=-5x^4+3x^2-6x
  q(x)=x^2+1
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>p=inline('-5*(x^4)+3*(x^2)','x')
  
  p =
       Inline function:
       p(x) = -5*(x^4)+3*(x^2)
  
  q=inline('x^2+1','x')
  
  q =
       Inline function:
       q(x) = x^2+1
  
  deconv(p,q)
  </code></pre>
  
  <p>but got error:</p>
  
  <pre><code>??? Undefined function or method 'filter' for input arguments of type 'inline'.
  
  Error in ==&gt; deconv at 32
     [q,zf] = filter(b, a, [1 zeros(1,nb-na)]);
  </code></pre>
  
  <p>WHY?</p>