📄 minimum_phase_wavelet.m
字号:
function mph_wavelet=minimum_phase_wavelet(wavelet,nsamp)% Compute the minimum-phase equivalent of the input wavelet (a vector with % the wavelet samples)%% Written by: E. R.: March 30, 2006% Last updated:%% mph_wavelet=minimum_phase_wavelet(wavelet)% INPUT% wavelet column vector of samples of an arbitrary wavelet% nsamp number of samples of the minimum-phase wavelet% OUTPUT% mph_wavelet column vector of the samples of the minimum-phase equivalent% of the input waveletnfft=pow2(nextpow2(nsamp)+3);fwav=abs(fft(wavelet,nfft));% Smooth the spectrumamp=anysmooth([fwav(end);fwav;fwav(1)],[1 2 1],0);mph_wavelet=minimum_phase(amp(2:end-1),nsamp);% Scale output wavelet to input waveletmph_wavelet=mph_wavelet*norm(wavelet)/norm(mph_wavelet);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -