How to use ‘ Operator In MATLAB

Syntax:

vec_B = vec_A’

Example 1:

Matlab




% MATLAB code for ' Operator
vecA = [1+2i 3+3.1i 4-1i;
        2-0.1i -4i 0.4;
        1i 0.23-1i 23+31i];     %matrix
         
% Displaying the original matrix
disp("Original Matrix")
disp(vecA)
 
% Computing the complex conjugate transpose of vecA
vecB = vecA';
 
% Displaying the complex conjugate transpose
disp("Complex Conjugate Transpose of vecA")
disp(vecB)


Output:

 

Calculate Complex Conjugate Transpose in MATLAB

The complex conjugate transpose of a matrix is the matrix obtained by transposing the original matrix and then applying the complex conjugate property of complex numbers on each of the element. In mathematics, this is also known as the Hermitian transpose of a matrix.

MATLAB provides two ways of calculating the complex conjugate transpose of a matrix:

  1. The ‘ operator.
  2. The ctranspose function.

Let us see the usage of both with examples.

Similar Reads

Method 1: Using ‘ Operator:

Syntax:...

Method 2: Using ctranspose()

...