MATLB - how to show REAL numbers only

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 3K views
Curl
Messages
756
Reaction score
0
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]
>>A'
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.

Thanks
 
Physics news on Phys.org