load data1760.txt
ad1760=[zeros(760,93); data1760(:,2:end)];
for ii=1:981
iNaN=isnan(ad1760(ii,:)); %% if there are NaNs, replace with previous
if sum(iNaN)
fiNaN=find(iNaN);
ad1760(ii,fiNaN)=ad1760(ii-1,fiNaN);
end
end

load data1800.txt
ad1800=[zeros(800,102); data1800(:,2:end)];
for ii=1:981
iNaN=isnan(ad1800(ii,:)); %% if there are NaNs, replace with previous
if sum(iNaN)
fiNaN=find(iNaN);
ad1800(ii,fiNaN)=ad1800(ii-1,fiNaN);
end
end