get_nihe_num.m
来自「这是用于工程测量进行大坝变形分析的软件」· M 代码 · 共 27 行
M
27 行
function [begin_time_num,end_time_num]=get_nihe_num(q,z,year,month,time)
%,year,month为各期观测的年、月数组,time为总的观测次数
%,q为计算起始年、月,z为计算终止年、月,该函数的作用是获得对应的起始和算终止年、月观测期数
j=1;
for i=1:time
if year(i)==q(1)
temp(j)=i;
j=j+1;
end
end
for i=1:length(temp)
if month(temp(i))==q(2)
begin_time_num=temp(i);
end
end
j=1;
for i=1:time
if year(i)==z(1)
temp1(j)=i;
j=j+1;
end
end
for i=1:length(temp1)
if month(temp1(i))==z(2)
end_time_num=temp1(i);
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?