CORDICbased absolute value
r = cordicabs(c)
r = cordicabs(c,niters)
r = cordicabs(c,niters,'ScaleOutput',b)
r = cordicabs(c,'ScaleOutput',b)
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
.




Optional commaseparated pairs of Name,Value
arguments,
where Name
is the argument name and Value
is
the corresponding value. Name
must appear inside
single quotes (''
).

Default: 


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 fixedpoint inputs.
fxpValues = fi(dblValues); r_fxp_cdc = cordicabs(fxpValues)
[1] Volder, JE. “The CORDIC Trigonometric Computing Technique.” IRE Transactions on Electronic Computers. Vol. EC8, September 1959, pp. 330–334.
[2] Andraka, R. “A survey of CORDIC algorithm for FPGA based computers.” Proceedings of the 1998 ACM/SIGDA sixth international symposium on Field programmable gate arrays. Feb. 22–24, 1998, pp. 191–200.
[3] Walther, J.S. “A Unified Algorithm for Elementary Functions.” HewlettPackard Company, Palo Alto. Spring Joint Computer Conference, 1971, pp. 379–386. (from the collection of the Computer History Museum). www.computer.org/csdl/proceedings/afips/1971/5077/00/50770379.pdf
[4] Schelin, Charles W. “Calculator Function Approximation.” The American Mathematical Monthly. Vol. 90, No. 5, May 1983, pp. 317–325.