Amplitude Shift Keying is one of the basic types of digital modulation techniques. In ASK, amplitude level of the carrier signal is switched according to the binary information, keeping the phase and frequency fixed.We had already discussed about ASK modulation circuit before. Here we will provide some matlab help for you on ASK simulation using simple matlab function.
We have used comments (in green color) so that it will be easy for you to lean matlab codes.
Recommended for you:
We have used comments (in green color) so that it will be easy for you to lean matlab codes.
Recommended for you:
Matlab Program for ASK
clear all;
clc;
close all;
F1=input('Enter the frequency of carrier=');
F2=input('Enter the frequency of pulse=');
A=3;%Amplitude
t=0:0.001:1;
x=A.*sin(2*pi*F1*t);%Carrier Sine wave
u=A/2.*square(2*pi*F2*t)+(A/2);%Square wave message
v=x.*u;
subplot(3,1,1);
plot(t,x);
xlabel('Time');
ylabel('Amplitude');
title('Carrier');
grid on;
subplot(3,1,2);
plot(t,u);
xlabel('Time');
ylabel('Amplitude');
title('Square Pulses');
grid on;subplot(3,1,3);
plot(t,v);
xlabel('Time');
ylabel('Amplitude');
title('ASK Signal');
grid on;
Generated ASK Signal
Ads
thakns,for this, im goin to use, for my homework !!
ReplyDelete