软件大小: | 242 K | ||
上传用户: | ok34090512 | ||
关键词: | K. Processing Laboratory Digital | ||
下载地址: | 免注册下载 普通下载 |
相关代码 |
|
function y = circonv(x1,x2) L1 = length(x1); L2 = length(x2); if L1 ~= L2, error('Sequences of unequal lengths'), end y = zeros(1,L1); x2tr = [x2(1) x2(L2:-1:2)]; for k = 1:L1 sh = circshift(x2tr,1-k); h = x1.*sh; y(k) = sum(h); end