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

📄 l_merge.m

📁 基于Matlab的地震数据处理显示和测井数据显示于处理的小程序
💻 M
字号:
function wlog=l_merge(wlog,curves,varargin)% Function replaces the null values of one curve with the corresponding % samples of another%% Written by: E. R.: October 4, 2002% Last updated: August 16, 2003: Renamed%%         wlog=l_merge(wlog,curves,varargin)% INPUT% wlog    well log% curves  cell array with two curve mnemonics; null values of the curve%         represented by the first curve mnemonic are replaced by the%         corresponding values of the curve represented by the second %         curve mnemonic         % varargin% OUTPUT% wlog    well log with the new curveglobal S4M%    Set default values for input parametersparam.mnem=[];%       Decode and assign input argumentsparam=assign_input(param,varargin);if isempty(param.mnem)  param.mnem=curves{1};endcurve1=l_gc(wlog,curves{1});curve2=l_gc(wlog,curves{2});idx=find(isnan(curve1));curve1(idx)=curve2(idx);if S4M.case_sensitive   if strcmp(param.mnem,curves{1})      wlog=l_curve(wlog,'replace',curves{1},curve1);   elseif strcmp(param.mnem,curves{2})      wlog=l_curve(wlog,'replace',curves{2},curve1);   else      wlog=l_curve(wlog,'add_ne',param.mnem,curve1,l_gu(wlog,curves{1}), ...         [l_gd(wlog,curves{1}),' (corrected)']);   endelse   if strcmpi(param.mnem,curves{1})      wlog=l_curve(wlog,'replace',curves{1},curve1);   elseif strcmpi(param.mnem,curves{2})      wlog=l_curve(wlog,'replace',curves{2},curve1);   else      wlog=l_curve(wlog,'add_ne',param.mnem,curve1,l_gu(wlog,curves{1}), ...         [l_gd(wlog,curves{1}),' (corrected)']);  endend  

⌨️ 快捷键说明

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