Convert complex vector to amplitude and phase vectors
1. vc2ap av:=col(2) pv:=col(3);
2. vc2ap cv:=col(3) av:=col(4) pv:=col(5) arc:=1;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Complex | cv |
Input vector<complex> |
|
Specifies the vector that has the complex numbers. |
Amplitude | av |
Output vector |
|
Specifies the output vector for the amplitudes. |
Phase | pv |
Output vector |
|
Specifies the output vector for the phases. |
Arc unit | arc |
Input int |
|
Specifies the arc unit.
|
The vc2ap function converts complex numbers in a vector into their amplitudes and phases.