4

I would like to use the bandpassing function that is available in newer versions of Mathematica but not Mathematica 8:

BANDPASSALPHA[x_] := 
 BandpassFilter[x, {8 Pi, 13 Pi}, SampleRate -> 500]

Is there a pice of custom code that would allow me to do this?

user13675
  • 947
  • 1
  • 6
  • 15
  • A crude filtering could be done with Fourier, a window and InverseFourier. If you want to use specific FIR/IIR filters with certain guarantees of performance in the pass/stop bands, then you're going to have to write a lot of the code yourself. If you have access to MATLAB (and the DSP toolbox), then I suggest using the functions from it in Mathematica 8. – rm -rf Sep 15 '14 at 00:07
  • @rm-rf If you have time would you outline the steps that would need to be implemented for the accurate Mathematica 8 solution? – Mr.Wizard Sep 15 '14 at 03:40
  • @Mr.Wizard No, sorry. It's a lot of time commitment and detail that's well beyond the scope of this site. OP still hasn't replied to my question re: MATLAB. If that's the case, then the second example here would be the best way to proceed. – rm -rf Sep 15 '14 at 04:44
  • @rm-rf It sounds like you are already familiar with the process and I meant only a very brief outline. Nevertheless I completely understand you not wanting to take time for it, whatever the amount. – Mr.Wizard Sep 15 '14 at 05:07

1 Answers1

4

There is a paper by Slaney from 1989 with quite detailed code for filter design.

Igor Rivin
  • 5,094
  • 20
  • 19