Document toolboxDocument toolbox

(8.D.2.2 ) ComplexToPolar

Overview

Converts the complex signal into polar.

Discussion

Converts the complex signal into polar. There are no restrictions on the number of channels or the blockSize.

Type Definition

typedef struct _ModuleComplexToPolar { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure } ModuleComplexToPolarClass;

Pins

Input Pins

Name: in

Description: Complex input

Data type: {float, int, fract32}

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Complex

Output Pins

Name: angle

Description: real output

Data type: {float, int, fract32}

 

Name: magnitude

Description: real output

Data type: {float, int, fract32}

Scratch Pins

Channel count: 1

Block size: 32

Sample rate: 48000

MATLAB Usage

File Name: complex_to_polar_module.m

M=complex_to_polar_module(NAME) This module converts the complex signal into polar. Arguments: NAME - name of the module. Input is complex and the two outputs are real.

Â