Consider refering to the following documentation for help in resolving your problem:
The lowpass function filters an input signal using a lowpass filter. Further, the following example, Lowpass FIR Filter Design shows how to design a lowpass FIR filter using fdesign.