Skip to main content
Skip table of contents

ZeroPadding

Overview

Zero padding

Discussion

The zero_padding_module extends the length of a block of adding zeros at the end. The module works with real or complex data and any number of channels. At instantiation time, you specify the output block size (OUTLEN). If OUTLEN is less than the input block size then the input data is truncated to OUTLEN.

Type Definition

CODE
typedef struct _ModuleZeroPadding
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleZeroPaddingClass;

Pins

Input Pins

Name: in

Description: input

Data type: {float, int, fract32}

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real and Complex

Output Pins

Name: out

Description: zero padded output

Data type: {float, int, fract32}

MATLAB Usage

File Name: zero_padding_module.m

CODE
 M=zero_padding_module(NAME, OUTLEN)
 Creates an Audio Weaver module that implements the zero padding
 procedure.

JavaScript errors detected

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

If this problem persists, please contact our support.