Using MATLAB, write a program that generates a filter for a given waveform with the following specifications: The filter should be a low-pass filter with a cut-off frequency of 100 Hz, a stop-band frequency of 150 Hz, and a pass-band ripple of no more than 1 dB. The input waveform should have a sampling frequency of 1000 Hz and be uniformly sampled over a time interval of 1 second. The output from the program should be the frequency response of the filter and a plot showing the waveform before and after filtering. Ensure that the program is well-commented and easy to understand, with variable names that are clear and concise.
This prompt doesn't seem malicious.