Show us your code and describe in detail any problems you are having with it. Include the full text of any error messages, and also post the specific lines they refer to.
With the Signal Processing Toolbox, this is fairly straightforward filter design.