It is a very complex assignment and I want the result in 12hrs. I'll send you the example codes of how to do these.
Interpolate and decimate and eye diagram
(1) generate ASK symbol values,
(2) define a square root Nyquist filter for sample to symbol interpolation, and
(3) use an interpolate by 4 with the Nyquist filter to generate 4 samples per symbol ASK time samples.
(4) add a “clean-up” filter between the test signal generator and the CIC
interpolator (pre-emphasis at a lower sample rate).