Method on @sym: conj (z)

Symbolic conjugate function.

Examples:

syms z
conj(z)
  ⇒ ans = (sym)
      _
      z

syms x real
conj(x)
  ⇒ ans = (sym) x

conj(sym(pi) + 6i)
  ⇒ ans = (sym) π - 6⋅ⅈ

Unlike ‘@sym/ctranspose’, this command does not transpose a matrix:

A = [1 z x; sym(4) 5 6+7i]
  ⇒ A = (sym 2×3 matrix)
      ⎡1  z     x   ⎤
      ⎢             ⎥
      ⎣4  5  6 + 7⋅ⅈ⎦
conj(A)
  ⇒ ans = (sym 2×3 matrix)
      ⎡   _         ⎤
      ⎢1  z     x   ⎥
      ⎢             ⎥
      ⎣4  5  6 - 7⋅ⅈ⎦

See also: @sym/ctranspose, @sym/real, @sym/imag.

Package: symbolic