Given the following complex numbers x 3 4i and y 2 5i gi

Given the following complex numbers x = 3 + 4i and y = 2 - 5i, give the MATLAB command to find their product z. Give also the commands for the product magnitude, angle, conjugate, imaginary and real parts. Compute BY HAND the magnitude of x and the conjugate of y. Write MATLAB commands to compute ln (5000 e^30 ). Use your calculate to find it.

Solution

Matlab code:

x = 3+4*1i;
y = 2-5*1i;
prodct = x*y
magntde = abs(prodct)
angle1 = angle(prodct)
conjugate1 = conj(prodct)
imaginary1 = imag(prodct)
real1 = real(prodct)

Output:

prodct =

26.0000 - 7.0000i


magntde =

26.9258


angle1 =

-0.2630


conjugate1 =

26.0000 + 7.0000i


imaginary1 =

-7


real1 =

26

b)

magnitude of x is sqrt(3^2 + 4^2) = 5;

conjugate of y is inverting the sign of imaginary part that is 2+5i

c)

>> log(5000*exp(30))

ans =

38.5172

Calculator value is same as matlab output

 Given the following complex numbers x = 3 + 4i and y = 2 - 5i, give the MATLAB command to find their product z. Give also the commands for the product magnitud
 Given the following complex numbers x = 3 + 4i and y = 2 - 5i, give the MATLAB command to find their product z. Give also the commands for the product magnitud

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site