没有合适的资源?快使用搜索试试~ 我知道了~
Matlab卷积和源代码
2星 需积分: 17 38 下载量 182 浏览量
2010-04-20
15:24:36
上传
评论
收藏 2KB TXT 举报
温馨提示
试读
2页
Matlab卷积和源代码 利用matlab编写卷积和
资源推荐
资源详情
资源评论
一维卷积用conv(A,B,'same')
二维卷积用conv2(A,B,'same')
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).
Class support for inputs A,B:
float: double, single
CONV2 Two dimensional convolution.
C = CONV2(A, B) performs the 2-D convolution of matrices A and B.
If [ma,na] = size(A), [mb,nb] = size(B), and [mc,nc] = size(C), then
mc = max([ma+mb-1,ma,mb]) and nc = max([na+nb-1,na,nb]).
C = CONV2(H1, H2, A) convolves A first with the vector H1 along the
rows and then with the vector H2 along the columns. If n1 = length(H1)
and n2 = length(H2), then mc = max([ma+n1-1,ma,n1]) and
二维卷积用conv2(A,B,'same')
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).
Class support for inputs A,B:
float: double, single
CONV2 Two dimensional convolution.
C = CONV2(A, B) performs the 2-D convolution of matrices A and B.
If [ma,na] = size(A), [mb,nb] = size(B), and [mc,nc] = size(C), then
mc = max([ma+mb-1,ma,mb]) and nc = max([na+nb-1,na,nb]).
C = CONV2(H1, H2, A) convolves A first with the vector H1 along the
rows and then with the vector H2 along the columns. If n1 = length(H1)
and n2 = length(H2), then mc = max([ma+n1-1,ma,n1]) and
资源评论
- xuewukuanghua2012-09-02这个代码比较水,貌似是copy的呢
- wofengzhizhi2012-05-18这也能称为是源代码吗? 仅仅是Copy了一下Matlab的帮助而已!!不要浪费别人时间好不好!!
- QQ2818985122012-08-06的确浪费别人时间,我有关于MATLAB卷积和的GUI,其实自己做比他这个好多了
- li9yue2013-04-04完全木有用。。骗分的么。。
jianchongwen
- 粉丝: 2
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功