|Download Help (Windows Only)|
Owning Class: transforms
Requires: MathScript RT Module
c = dct(a)
c = dct(a, b)
Computes the discrete cosine transform. You can invert this transform with the idct function.
|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.|
|c||Returns the discrete cosine transform of a.|
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||Not characterized|
x = cos(0:12);
y = dct(x, 16)