Skip to content

ComplexMagnitude

Overview

Calculates the magnitude of a complex signal

Discussion

calculates the magnitude of a complex signal. There are no restrictions on the number of channels or the blockSize

Module Pack

Advanced

ClassID

classID = 1235

Type Definition

typedef struct _ModuleComplexMagnitude
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleComplexMagnitudeClass;

Pins

Input Pins

Name in1
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 out1
Description real output
Data Type {float, int, fract32}

Matlab Usage

File Name: complex_magnitude_module.m 
 M=complex_magnitude_module(NAME) 
 This module calculates the magnitude of a complex signal. 
 Input is Complex and Output is real. 
  Arguments: 
    NAME - name of the module. 

Copyright (c) 2026 DSP Concepts, Inc.