Table Of Contents

dct

Version:
    Last Modified: March 15, 2017

    Computes the discrete cosine transform.

    Syntax

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

    Inputs

    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.

    Outputs

    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


    Recently Viewed Topics