MATLB - how to show REAL numbers only

2 replies · 4K views · last reply
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