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

📄 minimum_phase.m

📁 实现地震勘探中
💻 M
字号:
function wav=minimum_phase(amp,nsamp)% Function computes minimum-phase wavelet with given amplitude spectrum%% Written by: E. R.: November 23, 2002% Last updated: September 2, 2007: Replace small values of the amplitude %                                  spectrum by a fraction of the peak amplitude%%        wav=minimum_phase(amp,nsamp)% INPUT% amp    amplitude spectrum% nsamp  number of samples of desired wavelet% OUTPUT% wav    minimum-phase wavelet with amplitude spectrum "amp"%	Remove zeros of the amplitude spectrumminamp=0.005*max(amp);amp(amp < minamp)=minamp;temp=fft(log(amp));namp=length(amp);namph=fix(namp/2);temp=real(temp(2:nsamp)).*(1:nsamp-1)'/namph;wav=ones(nsamp,1);wav(2)=temp(1);for ii=2:nsamp-1   wav(ii+1)=sum(wav(ii:-1:1).*temp(1:ii))/ii;end

⌨️ 快捷键说明

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