Member of the transforms class.
c = dct(a)
c = dct(a, b)
Computes the discrete cosine transform. You can invert this transform with the idct function.
| Name | Description |
| a | Specifies the input array. a is an 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. |
| Name | Description |
| c | Returns the discrete cosine transform of a. |
x = cos(0:12);
y = dct(x, 16)