FUNCTION REFERENCE

conv2

Two-dimensional convolution.

Two-dimensional convolution.

Syntax

C = conv2(A, B)

Syntax

C = conv2(A, B, shape)

Syntax

C = conv2(hcol, hrow, A)

Syntax

C = conv2(hcol, hrow, A, shape)

shape is 'full' (default), 'same' or 'valid'. The hcol, hrow form convolves

each column with hcol and each row with hrow.

Example

conv2([1 2;3 4], [1 1;1 1])   % [1 3 2; 4 10 6; 3 7 4]

Differences from MATLAB: the hcol, hrow, A form takes real data only.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.