<< cheb2ord Signal Processing Supplementary toolbox dir2ladr >>

Signal Processing Supplementary toolbox >> Signal Processing Supplementary toolbox > convm

convm

Computes the convolution mask

Calling Sequence

y = convm(x,n)

Parameters

x

A vector whose convolution mask is to be generated

n

a positive integer usually greater than 1 which determines the size of the convolution mask

y

generated convolution mask, a matrix.

Description

It generates a convolution mask from a vector. The size of the generated mask is n by (m+n-1) or (m+n-1) by n depending on whether the input vector is of length m. Usually the second argument n is the length of the second vector for which convolution is required to be performed with the input vector.

Examples

// convolution using conlution mask
x1=[2 3 5 1 4];
x2=[1 5  2];
n=length(x2);
y=convm(x1,n)
y1=x2*y
//direct convolution 
y2=convol(x1,x2)
// If the two vectors are column vectors convolution is performed as follows
y=convm(x1',n)
y1=y*x2'

Authors


Report an issue
<< cheb2ord Signal Processing Supplementary toolbox dir2ladr >>