WLJS LogoWLJS Notebook

FourierDCTMatrix

FourierDCTMatrix[n] returns an n×n discrete cosine transform matrix of type 2.

  • FourierDCTMatrix[n, m] returns an n×n discrete cosine transform matrix of type m.

Examples

Create a 4×4 DCT matrix:

FourierDCTMatrix[4]

Create a type 1 DCT matrix:

FourierDCTMatrix[4, 1] // MatrixForm

Please visit the official Wolfram Language Reference for more details.

On this page