Decrease sample rate by integer factor M.
Plot input and output signals in Time and Frequency domains.
MATLAB
Digital Signal Processing
Run DecimationTest.mlx in MATLAB or browser to get the plots and see how to configure the input parameters.
More information:
MATLAB Help
dspGuru FAQs: Decimation
ETF RS: Milic