Matrix Complex - Matrix Example 3

 

This tutorial shows an example of a complex number with a 2x2 matrix  that is made up of complex number elements. It performs this operation for every points of the letter M on the left side and displays the result on the right side as shown below.

I used a matrix with a very special complex number which is very widely used in engineering. It is the complex number expressed in Euler form.

If you are not familiar with Complex Number, see my note on Complex number. If you don't know how to do complex number multiplication, see this note.

 

 

 

 

 

 

Followings are the code that I wrote in Octave to creates all the plots shown in this page. You may copy these code and play with these codes. Change variables and try yourself until you get your own intuitive understanding.

 

< Code 1 >

 

x = [ ...     

     0  45; ...

     14 45; ...

     26 13; ...

     39 45; ...

     52 45; ...

     52 0; ...

     44 0; ...

     44 38; ...

     30 0; ...

     21 0; ...

     8  38; ...

     8  0; ...

     0  0; ...

     0  45; ...

     ];

 

x = x';

c1 = x(1,:) + j*x(2,:);

c2 = -1 * c1;

 

n = 0;

m = (1/2) .* [1 1; ...

                  1 exp(-j*n*2*pi/20)];

 

tc = m * [c1; c2];

     

hFig = figure(1,'Position',[300 300 700 250]);    

subplot(1,7,[1 3]);

hold on;     

plot(real(c1),imag(c1),'b-');

plot(real(c2),imag(c2),'m-');

axis([-100 100 -100 100]);

hold off;

grid on;

box on;

 

subplot(1,7,[5 7]);     

hold on;

plot(real(tc(1,:)),imag(tc(1,:)),'r-');

plot(real(tc(2,:)),imag(tc(2,:)),'k-');

axis([-100 100 -100 100]);

hold off;

grid on;

box on;