DSP Blockset | ![]() ![]() |
Compute the IDCT of the input.
Library
Description
The IDCT block computes the inverse discrete cosine transform (IDCT) of each channel in the M-by-N input matrix, u
.
For both sample-based and frame-based inputs, the block assumes that each input column is a frame containing M consecutive samples from an independent channel. The frame size, M, must be a power-of-two. To work with other frame sizes, use the Zero Pad block to pad or truncate the frame size to a power-of-two length.
The output is an M-by-N matrix whose lth column contains the length-M IDCT of the corresponding input column.
The output is always frame-based, and the output sample rate and data type (real/complex) are the same as those of the input.
For convenience, length-M 1-D vector inputs and sample-based length-M row vector inputs are processed as single channels (i.e., as M-by-1 column vectors), and the output has the same dimension as the input.
The Sine and cosine computation parameter determines how the block computes the necessary sine and cosine values in the IFFT and fast IDCT algorithms used to compute the IDCT. This parameter has two settings, each with its advantages and disadvantages, as described in the following table.
Dialog Box
Supported Data Types
To learn how to convert to the above data types in MATLAB and Simulink, see Supported Data Types and How to Convert to Them.
See Also
DCT |
DSP Blockset |
IFFT |
DSP Blockset |
idct |
Signal Processing Toolbox |
Also see Transforms for a list of all the blocks in the Transforms library.
![]() | Histogram | Identity Matrix | ![]() |