假設這個運行
conv([a b],[c d])
則結果為
ac ad+bc bd
那麽上面的式子的求解過程為
conv([1 1 1],[1 1 1])
1*1=1
1*1+1*1=2
1*1+1*1+1*1=3
1*1+1*1=2
1*1=1
妳可以在matlab中使用help conv來看看
CONV Convolution and polynomial multiplication.
C = CONV(A, B) convolves vectors A and B. The resulting vector is
length MAX([LENGTH(A)+LENGTH(B)-1,LENGTH(A),LENGTH(B)]). If A and B are
vectors of polynomial coefficients, convolving them is equivalent to
multiplying the two polynomials.
C = CONV(A, B, SHAPE) returns a subsection of the convolution with size
specified by SHAPE:
'full' - (default) returns the full convolution,
'same' - returns the central part of the convolution
that is the same size as A.
'valid' - returns only those parts of the convolution
that are computed without the zero-padded edges.
LENGTH(C)is MAX(LENGTH(A)-MAX(0,LENGTH(B)-1),0).