Engee documentation

dB Gain

Multiply the input signal by a constant in decibels.

db gain

Description

The dB Gain block multiplies the input signal value by the constant value (gain) in decibels specified in the Gain parameter.

If the input signal contains an M by N matrix, the Gain parameter can be an M by N real matrix to be multiplied element by element by the input signal matrix, or a real scalar.

Equivalent linear gain value

,

is displayed in the block icon below the gain value in dB.

The output signal has the same dimension as the input signal. The dB Gain block supports real and complex floating point data types.

Ports

Input

Port_1 - input signal
scalar | vector | matrix

Input signal. If the input signal is real and the gain is complex, the output signal will be complex.

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

Support for complex numbers: Yes

Output

Port_1 - input signal multiplied by the gain in dB
scalar | vector | matrix

Input signal multiplied by the gain in dB. If the input signal of the dB Gain block is real and the gain is complex, the output signal will be complex.

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

Parameters

Gain - coefficient in dB by which the input signal is multiplied
-40 (by default) | `scalar, vector or matrix of any type, except logical `

The factor in dB by which the input signal is multiplied. The gain can be a real or complex scalar, vector, or matrix of any type except logical.

Input signal - type of input signal
Amplitude (By default) | Power.

The input signal type is Power or Amplitude.

When Input signal is set to:

  • Power - the u input is treated as a non-negative power signal expressed in watts.

  • Amplitude - the u input is treated as a voltage signal expressed in volts.