Write a MATLAB program (using/making the necessary functions that you deem necessary) that does the two following jobs:
It generates the following digital modulation schemes. In each case, the program should visualise the M possible waveforms, each drawn over symbol duration (T), of the chosen modulation scheme. The program asks the user to enter both M and the Type of modulation at the beginning. The program returns the waveforms (with your suitable choice of amplitude and symbol time, T, as to make the plots clear).
(1) MASK.
(2) MPSK.
(3) MFSK.
(4) MQAM.
Then the program asks the user to enter a sequence of bits. The program returns the sequence of symbols that correspond to this bit sequence (according to M) and plots the waveforms corresponding to each of these symbols.