Mathematical Computations – MATLAB for Beginners – MATLAB Basics – Tutorials – Volume-2

Unit-7

Complex Variables

>> a=10+15i
a =
  10.0000 +15.0000i


>> a=complex(3,7)
a =
   3.0000 + 7.0000i


>> real(a)
ans =
     3

>> imag(a)
ans =
     7


>> abs(a)
ans =
    7.6158

>> angle(a)
ans =
    1.1659


>> conj(a)
ans =
   3.0000 - 7.0000i

>> b=4+5i;

>> c=a*b
c =
 -23.0000 +43.0000i


>> d=a/b
d =
   1.1463 + 0.3171i

Be the first to comment

Leave a Reply

Your email address will not be published.




two × one =