This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

sincos Function with Fixed-Point Input

This example shows how to use the Trigonometric Function block to compute the CORDIC approximation of sincos for a fixed-point input signal.

The Trigonometric Function block parameters are:

  • Function: sincos

  • Approximation method: CORDIC

  • Number of iterations: 11

When using the CORDIC approximation method, the input to the Trigonometric Function block must be in the range [-2pi,2pi). The output type of the Trigonometric Function block is fixdt(1,13,11) because the input is a fixed-point signal and the Approximation method is set to CORDIC. The output fraction length equals the input word length minus two.