# dct

Version:

Computes the discrete cosine transform.

## Syntax

c = dct(a)
c = dct(a, b)

## a

Input array. If a is a 2D array, dct computes the discrete cosine transform along the first non-singleton dimension of a.

## b

Pads a with zeros or truncates a to the length of b. b is a positive integer.

## c

Discrete cosine transform of a.

## Inversion of dct

You can invert the discrete cosine transform with the idct function.

x = cos(0:12);
y = dct(x, 16)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices