📄 get_sediment.m
字号:
% This script gets the sediment thickness under each station% INPUT: datapath,sedimentfile% OUTPUT: thickness% sedimentfile must contain ALL basement points% including the closing points at the edges of the valley !var1 = load (sedimentfile) ; cd(datapath); var2 = load('xsismos.dat');cd (sourcepath);size(var1);N1 = ans(1);size(var2);N2 = ans(1);col_x = 1;col_z = 2;new = interp1( var1(1:N1,col_x), var1(1:N1,col_z), var2(1:N2,col_x), 'linear');var2(1:N2,col_z) = var2(1:N2,col_z) - new;% set to zero depth the stations on rock:for i=1:N2 if isnan(var2(i,col_z)) var2(i,col_z) = 0.; endend%plot(var1(1:N1,col_x), var1(1:N1,col_z), var2(1:N2,col_x),var2(1:N2,col_z));%save -ascii Depthfile var2thickness = var2 ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -