Creates a complex number from real and imaginary parts. |
||
Syntax |
c = Comp(r,i) |
|
Argument |
Name |
Description |
r |
A scalar, vector, or a matrix of real parts. |
|
i |
A scalar, vector, or a matrix of imaginary parts. |
|
Output |
Name |
Description |
c |
A scalar, vector, or a matrix of complex numbers. |
|
Example |
Create a matrix of complex entries from real and imaginary parts: |
|
Syntax |
||
M1 = [1,2]; M2 = [3,-4] M = Comp(M1, M2) |
||
Result |
||
M = [Matrix] (1 x 2) 1+3i 2-4i |
||
See Also: |