📄 cconv.m
字号:
function y = cconv(x, h)% lconv -- perform a circular convolution with ffts%% Usage% y = cconv(x, h)%% Inputs% x, h input vectors (must have the same length)%% Outputs% y the circular convolution of x and h% Copyright (C) -- see DiscreteTFDs/Copyrighterror(nargchk(2, 2, nargin));x = x(:);N = length(x);h = h(:);M = length(h);if (M ~= N) error('Input vectors must have the same length')endy = ifft( fft(x) .* fft(h));if (isreal(x) & isreal(h)) y = real(y);end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -