当前位置:首页>开发>正文

怎样用matlab编写计算两个序列圆周卷积的函数 用matlab中con函数求卷积

2023-04-21 08:04:17 互联网 未知 开发

 怎样用matlab编写计算两个序列圆周卷积的函数 用matlab中con函数求卷积

怎样用matlab编写计算两个序列圆周卷积的函数

先构造Xn与Hn两个函数,

ifn>=0&&n<=1
x(n)=0.8

elsex(n)=0

end

ifn>=0&&n<=
h(n)=1

elseh(n)=0

end

之后直接用conv函数求卷积就好了。令输出结果为Y,

Y=conv(x,h)

用matlab中con函数求卷积

用matlab中con函数求卷积
nction coresult = xcorr_my(A,B)
% XCORR_MY 自编相关函数
% copyright @lskyp 200% 2009.05.1length1 = length(A)
length2 = length(B)
if length1 ~= length if length1

最新文章