s_synthetic4landmark.m

来自「地震、测井方面matlab代码,解释的比较详细」· M 代码 · 共 33 行

M
33
字号
function s_synthetic4landmark(synthetic,filename)
% Function writes one-trace synthetic to ASCII file in Landmark format.
% Written by: E. R.
% Last updated

%           s_synthetic4landmark(synthetic,filename)
% INPUT
% synthetic synthetic in form of a seismic structure
% filename  filename (optional)
%           Default: PROGRAM_lmg_synthetic.txt where PROGRAM is the 
%           name of the script which created it

if nargin == 1
   filename='';
end

[nsamp,ntr]=size(synthetic.traces);
if ntr > 1
   error(' Synthetic has more than one trace')
end
 
text={'ASCII synthetic';
     ['Number of samples: ',num2str(nsamp)]; 
     ['First sample: ',num2str(synthetic.first),' ms'];
     ['Last sample: ',num2str(synthetic.last),' ms'];
     ['Sample interval: ',num2str(synthetic.step),' ms']};

wr_columns(filename,synthetic.traces,text)




⌨️ 快捷键说明

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