matlab中关于卷积有一个这样的例子 conv([1 1 1],[1 1 1]) 运行后的结果为 1 2 3 2 1
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/03 14:48:16
![matlab中关于卷积有一个这样的例子 conv([1 1 1],[1 1 1]) 运行后的结果为 1 2 3 2 1](/uploads/image/z/6841573-61-3.jpg?t=matlab%E4%B8%AD%E5%85%B3%E4%BA%8E%E5%8D%B7%E7%A7%AF%E6%9C%89%E4%B8%80%E4%B8%AA%E8%BF%99%E6%A0%B7%E7%9A%84%E4%BE%8B%E5%AD%90+conv%28%5B1+1+1%5D%2C%5B1+1+1%5D%29+%E8%BF%90%E8%A1%8C%E5%90%8E%E7%9A%84%E7%BB%93%E6%9E%9C%E4%B8%BA+1+2+3+2+1)
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
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).