Complex numbers are frequently used in mathematical phenomenons in calculations. So Matlab® has expression standards for the complex number. In this article we will explain;
>> a = 6+8i b=abs(a) c=real(a) d=imag(a) f=angle(a) a = 6.0000 + 8.0000i b = 10 c = 6 d = 8 f = 0.9273 >>
As you can see above, the expression of complex numbers in Matlab® is very basic. You need to type the complex number as shown above in Matlab®. The imaginary value is typed as ‘i’ as you see.
YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!
There are a bunch of functions about complex numbers in Matlab®;
As you know that you can use the indexed values in other calculations or codes in Matlab®, you can also use these indexed complex number values in further calculations or codes in Matlab®.
The general logic about complex numbers in Matlab® can be stated basically like that. If you wish much more complex example about complex numbers and their functions in Matlab®, we can publish one.
This article is prepared for completely educative and informative purposes. Images used courtesy of Matlab®
Leave your comments and questions below about complex numbers in Matlab®!