title: How to extract Symbolic coefficient of TRANSFER FUNCTION in MATLAB
body: <p>How to extract coefficient in symbolic math <strong>MATLAB</strong>. </p>
  
  <p>eg, i have transfer function like</p>
  
  <pre><code>H(S) = (a*S^2 + b*S^ + a*c*S + d*a) / (S^3 + b*c*S^2 + d*S^1 + a*d)
  </code></pre>
  
  <p>I want to get coefficient of 'S' term in H(s) as vector array  like </p>
  
  <pre><code>num = [a b a*c d*a]
  den = [1 b*c d a*d]
  </code></pre>