Extracts the real part of a complex number. |
||
Syntax |
r = Real(m) |
|
Argument |
Name |
Description |
m |
A scalar, vector, or a matrix. |
|
Output |
Name |
Description |
r |
A scalar, vector, or a matrix of the real part of each entry. |
|
Example |
Extract the real part of each element in a vector: |
|
Syntax |
||
M = Real([1,2+3i]) |
||
Result |
||
M = [Matrix] (1 x 2) 1 2 |
||
See Also: |