function [sig, sigt] = fillin(times,values,desiredtimes)

sigt = desiredtimes;
sig = zeros(size(desiredtimes));

for(i = 1:(length(times)-1))
    ind1 = find(desiredtimes == times(i));
    ind2 = find(desiredtimes == times(i+1));
    sig(ind1:ind2) = values(i);
end