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.
|
| Name | Description |
|---|---|
| c | Returns the convolution of a and b. |
A = rand(2);
B = rand(4);
C = conv2d(A, B, 'full')