| Contents | Index |
r = cordicabs(c)
r = cordicabs(c,niters)
r = cordicabs(c,niters,'ScaleOutput',b)
r = cordicabs(c,'ScaleOutput',b)
r = cordicabs(c) returns the magnitude of the complex elements of C.
r = cordicabs(c,niters) performs niters iterations of the algorithm.
r = cordicabs(c,niters,'ScaleOutput',b) specifies both the number of iterations and, depending on the Boolean value of b, whether to scale the output by the inverse CORDIC gain value.
r = cordicabs(c,'ScaleOutput',b) scales the output depending on the Boolean value of b.
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 ('').
CORDIC is an acronym for COordinate Rotation DIgital Computer. The Givens rotation-based CORDIC algorithm is among one of the most hardware-efficient algorithms available because it requires only iterative shift-add operations (see [1], [2]) The CORDIC algorithm eliminates the need for explicit multipliers. Using CORDIC, you can calculate various functions, such as sine, cosine, arc sine, arc cosine, arc tangent, and vector magnitude. You can also use this algorithm for divide, square root, and hyperbolic, and logarithmic functions.
Increasing the number of CORDIC iterations can produce more accurate results, but doing so also increases the expense of the computation and adds latency.
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)
[1] Volder, J.E. "The CORDIC Trigonometric Computing Technique," IRE Transactions on Electronic Computers. Vol. EC-8, 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.
abs | cordicangle | cordiccart2pol

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |