This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

conj

Complex conjugate

Syntax

Zc = conj(Z)

Description

example

Zc = conj(Z) returns the complex conjugate of each element in Z.

Examples

collapse all

Find the complex conjugate of the complex number Z.

Z = 2+3i
Z = 2.0000 + 3.0000i
Zc = conj(Z)
Zc = 2.0000 - 3.0000i

Create a 2-by-2 matrix with complex elements.

Z = [0-1i 2+1i; 4+2i 0-2i]
Z = 2×2 complex

   0.0000 - 1.0000i   2.0000 + 1.0000i
   4.0000 + 2.0000i   0.0000 - 2.0000i

Find the complex conjugate of each complex number in matrix Z.

Zc = conj(Z)
Zc = 2×2 complex

   0.0000 + 1.0000i   2.0000 - 1.0000i
   4.0000 - 2.0000i   0.0000 + 2.0000i

Input Arguments

collapse all

Input array, specified as a scalar, vector, matrix, or multidimensional array. conj operates element-wise when Z is nonscalar.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

See Also

| | | | |

Introduced before R2006a