title: How to get imaginary and real part of complex expression symbolically in Matlab?
body: <p>I am trying to get the imaginary and real part of following complex expression.</p>
  
  <pre><code>syms a b
  F = imag((cos(a)-j*sin(a))/(1+j*a*b-cos(a)+j*sin(a)))
  simplify(F)
  </code></pre>
  
  <p>The output is same with or without simplify. 
  Is there any way to express this expression in standard complex number format (x+jy)?</p>