Skip to content

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

Module Pack

Advanced

ClassID

classID = 1239

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. 

Copyright (c) 2026 DSP Concepts, Inc.