make_stepfn.m
SYNTAX: [d,t] = make_stepfn(data,time,timevec)
PURPOSE: Make a step function from given (time,data) pairs and sampled on
a given time base.
INPUT:
data = data to create step function from
time = time vector corresponding to data
timevec = times at which to create steps
OUTPUT:
d = step function data
t = time vector for d (= timevec)
RESTRICTIONS: This function assumes that timevec is much finer sampled
than time vector. I don't know what happens if this is not true.
SEE ALSO: stepfn
Dependencies