Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLB - how to show REAL numbers only

  1. Dec 29, 2011 #1
    I'm trying to use the MATLAB symbolic toolkit, but the "conj" term keeps annoying me. Here's an example:

    >>syms l d
    >>A=[l d ; d*l -l*l*d]
    ans =

    [ conj(l), conj(d)*conj(l)]
    [ conj(d), -conj(d)*conj(l)^2]

    How do I tell MATLAB I'm only interested in real numbers, and get rid of the conj terms? My applications do not involve any imaginary numbers at all.

  2. jcsd
  3. Dec 29, 2011 #2


    User Avatar
    Gold Member

    Code (Text):

    syms [COLOR="Purple"]l d real[/COLOR];
  4. Dec 29, 2011 #3
    I appreciate it.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook