當前位置:編程學習大全網 - 編程軟體 - matlab中關於卷積有壹個這樣的例子 conv([1 1 1],[1 1 1]) 運行後的結果為 1 2 3 2 1

matlab中關於卷積有壹個這樣的例子 conv([1 1 1],[1 1 1]) 運行後的結果為 1 2 3 2 1

卷積的意思簡單的理解就是我們學過的多項式的乘法。

假設這個運行

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).

  • 上一篇:exp是什麽意思?
  • 下一篇:亳州三巽壹_院小區周邊配套怎麽樣?
  • copyright 2024編程學習大全網