Main Content

C2000 Magnitude IQN

Magnitude of two orthogonal IQ numbers

Description

This block calculates the magnitude of two IQ numbers using

a2+b2

The output is an IQ number in the same Q format as the input.

Note

The implementation of this block does not call the corresponding Texas Instruments® library function during code generation. The TI function uses a global Q setting and the MathWorks® code used by this block dynamically adjusts the Q format based on the block input. See Using the IQmath Library for more information.

  • C2000 Magnitude IQN block

References

For detailed information on the IQmath library, see the user's guide for the C28x IQmath Library - A Virtual Floating Point Engine, Literature Number SPRC087, available at the Texas Instruments Web site. The users guide is included in the zip file download that also contains the IQmath library (registration required).

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.