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

📄 ricker.m

📁 matlab下KL变换,用于去除随机噪声
💻 M
字号:
function [w,tw] = ricker(f,dt)%RICKER: Ricker wavelet of central frequency f.%%  [w,tw] = ricker(f,dt);%%  IN   f : central freq. in Hz (f <<1/(2dt) )%       dt: sampling interval in sec  %%  OUT  w:  the Ricker wavelet%       tw: axis%%  Example%%    [w,tw] = ricker(10,0.004);%    plot(tw,w);%%  Copyright (C) 2008, Signal Analysis and Imaging Group%  For more information: http://www-geo.phys.ualberta.ca/saig/SeismicLab%  Author: M.D.Sacchi%%  This program is free software: you can redistribute it and/or modify%  it under the terms of the GNU General Public License as published%  by the Free Software Foundation, either version 3 of the License, or%  any later version.%%  This program is distributed in the hope that it will be useful,%  but WITHOUT ANY WARRANTY; without even the implied warranty of%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%  GNU General Public License for more details: http://www.gnu.org/licenses/% nw=2.2/f/dt; nw=2*floor(nw/2)+1; nc=floor(nw/2); w = zeros(nw,1); k=[1:1:nw]'; alpha = (nc-k+1).*f*dt*pi; beta=alpha.^2; w = (1.-beta.*2).*exp(-beta);  if nargout>1;    tw = -(nc+1-[1:1:nw])*dt;  end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -