DCT
Discrete cosine transform (DCT) of the input signal.
blockType: DCT
Path in the library:
|
Description
Block DCT calculates the unitary discrete cosine transform (DCT) of the input signal . If the input signal is a matrix on , the block calculates the DCT transformation of each channel in the matrix.
Ports
Input
#
IN_1
—
The input signal
vector | the M by N matrix | array
Details
Specify the input signal in the form of a vector, matrix on or an array.
For all input arrays, the block calculates DCT transformations based on the first dimension. The size of the first dimension (the frame size) must be a power of two. To work with other frame sizes, use the block Pad to fill or truncate the frame size to a length equal to a power of two.
If the input signal for the DCT block is a matrix on , the block treats each input column as an independent channel containing consecutive samples.
| Data types |
|
| Complex numbers support |
Yes |
Output
#
OUT_1
—
output DCT-converted signal
vector | the M by N matrix | array
Details
The output DCT is a transformed signal in the form of a vector, matrix on or an array.
If the block outputs a matrix on Then The -th column of the matrix contains the length the corresponding input column.
where
| Data types |
|
| Complex numbers support |
Yes |