📄 get_nihe_num.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -