cordicabs
CORDIC-based absolute value
Syntax
r = cordicabs(c)
r = cordicabs(c,niters)
r = cordicabs(c,niters,'ScaleOutput',b)
r = cordicabs(c,'ScaleOutput',b)
Description
returns
the magnitude of the complex elements of C. r
= cordicabs(c
)
performs r
= cordicabs(c
,niters
)niters
iterations
of the algorithm.
specifies
both the number of iterations and, depending on the Boolean value
of r
= cordicabs(c
,niters
,'ScaleOutput',b)b
, whether to scale the output by the inverse
CORDIC gain value.
scales the output depending on the Boolean value of r
= cordicabs(c
,'ScaleOutput',b)b
.
Input Arguments
|
|
|
|
Name-Value Arguments
Optional comma-separated pairs of Name,Value
arguments,
where Name
is the argument name and Value
is
the corresponding value. Name
must appear inside
single quotes (''
).
|
Default: |
Output Arguments
|
|
Examples
Compare cordicabs
and abs
of
double values.
dblValues = complex(rand(5,4),rand(5,4)); r_dbl_ref = abs(dblValues) r_dbl_cdc = cordicabs(dblValues)
Compute absolute values of fixed-point inputs.
fxpValues = fi(dblValues); r_fxp_cdc = cordicabs(fxpValues)
More About
More About
Algorithms
Extended Capabilities
Version History
Introduced in R2011b