I will describe a number of time series filtering techniques, including the Hodrick-Prescott, Baxter-King and bandpass filters and variants, and present new Mata-coded versions of these routines which are considerably more efficient than previous ado-code routines. Applications to an economic time series will be discussed.