matlab中conv()是什么意思?
conv()函数是用于计算向量的卷积和多项式乘法。
【使用说明】:
(1)w = conv(u,v) convolves
vectors u and v. Algebraically,
convolution is the same operation as multiplying the polynomials whose
coefficients are the elements of u and v.
(2)w = conv(...,'shape') returns
a subsection of the convolution, as specified by the shape parameter:
full
Returns the full convolution (default).
same
Returns the central part of the convolution of the same
size as u.
valid
Returns only those parts of the convolution
that are computed without the zero-padded edges. Using this option, length(w) is max(length(u)-max(0,length(v)-1),0).
【注】:matlab函数可用help和doc查询用法。
如help conv,doc conv。
扩展资料:
1) 高效的数值计算及符号计算功能,能使用户从繁杂的数学运算分析中解脱出来;
2) 具有完备的图形处理功能,实现计算结果和编程的可视化;
3) 友好的用户界面及接近数学表达式的自然化语言,使学者易于学习和掌握;
4) 功能丰富的应用工具箱(如信号处理工具箱、通信工具箱等) ,为用户提供了大量方便实用的处理工具。
参考资料:百度百科-MATLAB
C = CONV(A, B) convolves vectors A and B. The resulting
vector is length LENGTH(A)+LENGTH(B)-1.
If A and B are vectors of polynomial coefficients, convolving
them is equivalent to multiplying the two polynomials.
See also DECONV, CONV2, CONVN, FILTER and, in the Signal
Processing Toolbox, XCORR, CONVMTX.
看得懂吧?主用用于多项式乘法、矩阵乘法。
卷积。
【使用说明】:
(1)w = conv(u,v) convolves
vectors u and v. Algebraically,
convolution is the same operation as multiplying the polynomials whose
coefficients are the elements of u and v.
(2)w = conv(...,'shape') returns
a subsection of the convolution, as specified by the shape parameter:
full
Returns the full convolution (default).
same
Returns the central part of the convolution of the same
size as u.
valid
Returns only those parts of the convolution
that are computed without the zero-padded edges. Using this option, length(w) is max(length(u)-max(0,length(v)-1),0).
【注】:matlab函数可用help和doc查询用法。
如help conv,doc conv。
所谓两个向量卷积,说白了就是多项式乘法。
比如:p=[1 2 3],q=[1 1]是两个向量,p和q的卷积如下:
把p的元素作为一个多项式的系数,多项式按升幂(或降幂)排列,比如就按升幂吧,写出对应的多项式:1+2x+3x^2;同样的,把q的元素也作为多项式的系数按升幂排列,写出对应的多项式:1+x。
卷积就是“两个多项式相乘取系数”。
(1+2x+3x^2)×(1+x)=1+3x+5x^2+3x^3
所以p和q卷积的结果就是[1 3 5 3]。
记住,当确定是用升幂或是降幂排列后,下面也都要按这个方式排列,否则结果是不对的。
你也可以用matlab试试
p=[1 2 3]
q=[1 1]
conv(p,q)
看看和计算的结果是否相同。
希望对您有所帮助