Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

conv2d (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: filter implementation

Requires: MathScript RT Module


c = conv2d(a, b)

c = conv2d(a, b, A)

c = conv2d(a, b, shape)

c = conv2d(a, b, A, shape)

Legacy Name: conv2


Applies a two-dimensional convolution.



Name Description
a Specifies a real or complex matrix.
b Specifies a real or complex matrix.
A Specifies a real or complex matrix. a and b must be vectors if A is given. If a is a column vector and b is a row vector, conv2d(a, b, A) is the same as conv2d(a * b, A).
shape Specifies the size of the output. shape is a string that accepts the following values.

'full' (default) Returns the full two-dimensional convolution. c is larger than a.
'same' Returns the central part of the convolution. c is the same size as a.
'valid' Returns only the parts of the convolution that LabVIEW computes without zero-padded edges. c is smaller than a.


Name Description
c Returns the convolution of a and b.


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


A = rand(2);
B = rand(4);
C = conv2d(A, B, 'full')

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful