l_extend.m
来自「基于Matlab的地震数据处理显示和测井数据显示于处理的小程序」· M 代码 · 共 41 行
M
41 行
function wlog=l_extend(wlog,from,to)% Function extends the depth range of a log structure by % appending/prepending null values% Written by: E. R.: October 4, 2002% Last updated:%% wlog=l_extend(wlog,from,to)% INPUT% wlog log structure% from starting depth% to final depth% OUTPUT% wlog extended logwlog=l_select(wlog,{'depths',from,to});step=wlog.step;if wlog.first > from & wlog.last < to wlog.first=from; wlog.last=to; wlog.curves=[wlog.null*ones(1,size(wlog.curves,2));wlog.curves; ... wlog.null*ones(1,size(wlog.curves,2))];else if wlog.first > from wlog.first=from; wlog.step=0; wlog.curves=[wlog.null*ones(1,size(wlog.curves,2));wlog.curves]; end if wlog.last < to wlog.last=to; wlog.step=0; wlog.curves=[wlog.curves;wlog.null*ones(1,size(wlog.curves,2))]; endendif step > 0 wlog=l_resample(wlog,step);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?