Wednesday, 15 January 2014

MATLAB PROGRAM FOR ASK

%Amplitude shift keying
clc;
clear all;
close all;
s=[1 0 1 1 1 0];
f1=10;
a=length(s);
for i=1:a
f=f1*s(1,i);
for t=(i-1)*100+1:i*100
x(t)=sin(2*pi*f*t/1000)
end
end
plot(x)
xlabel('time in secs')
ylabel('amplitude in volts')
title('ASK')
grid on

OUTPUT:

No comments:

Post a Comment