kolmog.m
来自「著名的seismiclab的代码 是地震学研究人员必备的工具」· M 代码 · 共 47 行
M
47 行
function [w_min] = kolmog(w); %KOLMOG: Kolmogoroff spectral factorization% Given an arbitrary wavelet this% function retrieves the minimum phase% wavelet using the Hilbert transform%% [w_min] = kolmog(w)%% IN w: a wavelet of arbitrary phase (1 column or 1 row)%% OUT w_min: a min phase wavelet %%% Example:% w = [1,2]; % w_min = kolmog(w); % % SeismicLab% Version 1%% written by M.D.Sacchi, last modified December 10, 1998.% sacchi@phys.ualberta.ca % % Copyright (C) 1998 Seismic Processing and Imaging Group % Department of Physics% The University of Alberta %%nw = max(size(w)); % lenght of the waveletnfft = 4*( 2^nextpow2(nw));W = log ( abs(fft(w,nfft))+1.e-25 );W = ifft(W);for i=nfft/2+2:nfft; W(i)=0.;end;W = 2.*W;W(1) =W(1)/2.;W = exp(fft(W)) ;w_min = real(ifft(W));w_min = w_min(1:nw); return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?