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

📄 s_hilbert.m

📁 基于Matlab的地震数据处理显示和测井数据显示于处理的小程序
💻 M
字号:
function seismic=s_hilbert(seismic,varargin)% Function computes Hilbert transform or instantaneous amplitude of seismic data% Written by: E. R., October 10, 2000% Last updated: June 10, 2004: keyword 'output' as replacement for 'type';%                              trace nulls removed if present%%              seismic=s_hilbert(seismic,varargin)% INPUT% seismic      seismic structure% varargin    one or more cell arrays; the first element of each cell array is a keyword,%             the other elements are parameters. Presently, keywords are:%     'output'  Possible values are: %             'hilbert'  (Hilbert transform of the seismic input data)%             'complex' (seismic+i*hilbert(seismic) )%             'amplitude' (instantaneous amplitude)%              Default: {'output','amplitude'}% OUTPUT% seismic    seismic structure after the transformation specified via 'output'%     Set default valuesparam.output='amplitude';%       Decode and assign input argumentsparam=assign_input(param,varargin);if isfield(seismic,'null')   if isnan(seismic.null)      disp(' Null values in seismic rmoved or replaced by zeros via "s_rm_trace_nulls".')      seismic=s_rm_trace_nulls(seismic);   endendswitch param.output                case 'amplitude'seismic.traces=abs(myhilbert(seismic.traces));htext='Instantaneous amplitude';                case 'complex'seismic.traces=myhilbert(seismic.traces);htext='Complex trace';                case 'hilbert'seismic.traces=imag(myhilbert(seismic.traces));htext='Hilbert transform';                otherwiseerror([' Unknown output "',param.output,'"'])   end%    Append history fieldif isfield(seismic,'history')   seismic=s_history(seismic,'append',htext);end

⌨️ 快捷键说明

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