Multidimensional Discrete Cosine Transform (DCT)

Fast forward and inverse Multidimensional Discrete Cosine Transforms (DCT, IDCT).

Download
Download

You are now following this Submission

Cite As

Andriy Myronenko (2026). Multidimensional Discrete Cosine Transform (DCT) (https://www.mathworks.com/matlabcentral/fileexchange/24050-multidimensional-discrete-cosine-transform-dct), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.5.0

I have made it even faster by using only fft, without ifft, for both forward and inverse dct.

Download
1.4.0

Corrected a bug with processing of 1D row vectors. Now it's as fast as with column vectors (and much faster then 1D Matlab's dct, idct)

Download
1.3.0

added a screenshot of computational times of mirt_dctn and mirt_idctn vs Matlab's native (dct,idct,dct2,idct2).

Download
1.0.0

Download