Engee documentation

Upsample

Resamples the input at a higher rate by inserting zeros. Reduces the sampling rate of the input signal by removing intermediate values.

upsample

Description

The Upsample block increases the sampling rate of each channel of the input signal (of size Mi by N) by times by inserting zeros between adjacent values of the input signal, where is the value of the Upsample factor parameter.

Ports

Input

Port_1 - input signal
scalar | vector | matrix

Input signal as a scalar, vector or matrix.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Support for complex numbers: Yes

Output

Port_1 - output signal
scalar | vector | matrix

Output signal with a sampling rate that is L times the input sampling rate.

When the input represents a variable-sized signal, the output is also a variable-sized signal.

Data types: Float64.

Parameters

Upsample factor - upsampling factor
2 (by default) | `positive number `

The upsampling factor L by which the input sampling rate can be increased; positive integer.

Initial conditions - initial value
0.0 (by default) | scalar | vector | matrix

The value of the output signal at the beginning of the simulation. If this parameter is specified as a vector or matrix, its size must be the same as that of the input signal.