cordicangle
CORDIC-based phase angle
Syntax
theta = cordicangle(c)
theta = cordicangle(c,niters)
Description
returns
the phase angles, in radians, of matrix theta
= cordicangle(c
)c
, which
contains complex elements.
performs theta
= cordicangle(c
,niters
)niters
iterations
of the algorithm.
Input Arguments
|
Matrix of complex numbers |
|
|
Output Arguments
|
|
Examples
Phase angle for double-valued input and for fixed-point-valued input.
dblRandomVals = complex(rand(5,4), rand(5,4)); theta_dbl_ref = angle(dblRandomVals); theta_dbl_cdc = cordicangle(dblRandomVals) fxpRandomVals = fi(dblRandomVals); theta_fxp_cdc = cordicangle(fxpRandomVals) theta_dbl_cdc = 1.0422 1.0987 1.2536 0.6122 0.5893 0.8874 0.3580 0.2020 0.5840 0.2113 0.8933 0.6355 0.7212 0.2074 0.9820 0.8110 1.3640 0.3288 1.4434 1.1291 theta_fxp_cdc = 1.0422 1.0989 1.2534 0.6123 0.5894 0.8872 0.3579 0.2019 0.5840 0.2112 0.8931 0.6357 0.7212 0.2075 0.9819 0.8110 1.3640 0.3289 1.4434 1.1289 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
More About
More About
Algorithms
Extended Capabilities
Version History
Introduced in R2011b