Nishant Srivastava performed an experiment on March 28, 2014 to generate and demodulate an amplitude shift keying (ASK) modulated signal using MATLAB. The code generates a binary digital signal, modulates it using ASK to produce an analog signal, then demodulates the signal back to the original digital values. The output displays the modulated and demodulated signals on two subplots with their respective time and amplitude axes.
Nishant Srivastava performed an experiment on March 28, 2014 to generate and demodulate an amplitude shift keying (ASK) modulated signal using MATLAB. The code generates a binary digital signal, modulates it using ASK to produce an analog signal, then demodulates the signal back to the original digital values. The output displays the modulated and demodulated signals on two subplots with their respective time and amplitude axes.
for i=1:l A=a*s(1,i); for t=(i-1)*100+1:i*100 x(t)=A*sin(2*pi*f*t/1000); %1000=sampling frequency
%% Degeneration of ASK
if (abs(x(t))>0) y(t)=1; % To get higher digital value (1) else y(t)=0; %To get lower digital value (0) end end end subplot(211);plot(x) xlabel('time in secs.....>') ylabel('Amplitude in volts .... >') title('ASK') grid on
subplot(212);plot(y) axis([0 600 0 2]); xlabel('time in secs... >') ylabel('Amplitude in volts ....>') title('Demodulated ASK') grid on
Output waveforms for binary ASK modulated and demodulated signal :