Skip to content

taufilter.m

Basic Information

  USAGE: dataf = taufilter(data,time,tau,dataf0)

  PURPOSE:  Filter a signal with a one pole filter having a given time
        constant tau.

  INPUT:
       data    = data to filter
       time    = time values associated with each data point (in seconds)
                       (can be uniformly or non-uniformly sampled)
       tau     = time constant of filter (in seconds)
       dataf0  = initial value of filtered data (set to 0 for default)

  OUTPUT:
       dataf   = filtered data

Dependencies