Table Of Contents

conv

Version:
    Last Modified: March 15, 2017

    Computes the convolution of two vectors.

    Syntax

    c = conv(c1, c2)
    c = conv(c1, c2, shape)

    Inputs

    c1

    Real or complex vector.

    c2

    Real or complex vector.

    shape

    Size of the output. shape is a string that accepts the values 'full', 'same', and 'valid'.

    Name Description
    'full' (default)

    Returns the full two-dimensional convolution. c is larger than c1.

    'same'

    Returns the central part of the convolution. c is the same size as c1.

    'valid'

    Returns only the parts of the convolution that MathScript computes without zero-padded edges. c is smaller than c1.

    Outputs

    c

    Convolution of c1 and c2.

    C1 = [1, 2, 3]
    C2 = [3, 4]
    C = conv(C1, C2)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics