Skip to main content
Skip table of contents

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

CODE
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

CODE
 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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.