MATLB - how to show REAL numbers only

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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
Code:
syms l d real;