⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cconv.m

📁 该工具箱为时频分析中的一类重要变换,离散时频分布的工具箱,其中提供基本算法的程序.可直接应用
💻 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 + -