HyperMath

Conv

Conv

Previous topic Next topic No expanding text in this topic  

Conv

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Convolution of two signals.

Syntax

y = Conv(vec1, vec2, type, length)

Arguments

Name

Description

 

vec1

A vector of real data.

 

vec2

A vector of real data. Must be of same length as vec1

 

type

Set to "linear" or "circular." Default is "linear".

 

length (optional)

The length of the output vector if specified as a positive integer and when type is "circular".  If omitted or zero, the length will be the input signal length.  If the length is specified as ‘pad’, the length will be rounded up (zero padding the inputs) if necessary to obtain a power of 2.

Output

Name

Description

 

y

The output convolution vector.  When type is "linear", its length equals the the sum of the lengths of the input vectors minus 1.  When type is "circular", see the description of length.

Example

Given two vectors data1 and data2, a vector of the convolution of the two is created.

 

Syntax

 

y = Conv(data1, data2)

 

Result

 

y is a vector of the convolution of the two.

Comments

Circular convolution is appropriate for periodic signals and is performed by Fourier methods.

See Also:

Corr

Filter

Ifft