clear all

load fecha_original.mat
load fecha_datos.mat

 %VarName1:fecha/hora original

load Temp.mat

a=1;
b=1;

    for i=1:62;
        
        dif(a) = datenum(VarName1(i)) - datenum(Fecha_Datos(b));
        
        %i
        if (dif-0.041666<=0.0) 
           b;
             base(a,1)= VarName1(i);
             base(a,2)= {Temp(b)};
          
             a=a+1;
             b=b+1;   
        else
             a;
             base(a,1)=VarName1(i);
             base(a,2)={NaN};
         
             a=a+1;
         end 
     end
                
    %base
    %datos=cell2mat(base(:,1));
    
  