ASK matlab code | ASK modulation matlab source code

This page of MATLAB source code covers ASK matlab code. The output plots and mathematical equations of ASK modulation matlab code are mentioned. ASK modulation stands for Amplitude Shift Keying Modulation.

Introduction:
The ASK modulation is a digital modulation technique in which amplitude of the carrier signal varies in accordance to the digital binary data (1 or 0). Binary logic-1 represents one level of carrier amplitude (i.e. A2) and logic-0 represents another level of carrier amplitude (i.e. A1) .

ASK modulation

The figure-1 depicts ASK modulation type. As shown inputs are digital binary data and analog carrier while output is analog ASK modulated signal. It offers high bandwidth efficiency and provides very simple receiver design. Also refer difference between ASK, FSK and PSK modulation types>> and Advantages and Disadvantages of ASK Modulation>>.

ASK matlab code

clear;	
clc;
b = input('Enter the Bit stream \n '); %b = [0 1 0 1 1 1 0];
n = length(b);
t = 0:.01:n;
x = 1:1:(n+1)*100;
for i = 1:n
for j = i:.1:i+1
bw(x(i*100:(i+1)*100)) = b(i);
end
end
bw = bw(100:end);
sint = sin(2*pi*t);
st = bw.*sint;
subplot(3,1,1)
plot(t,bw)
grid on ; axis([0 n -2 +2])
subplot(3,1,2)
plot(t,sint)
grid on ; axis([0 n -2 +2])
subplot(3,1,3)
plot(t,st)
grid on ; axis([0 n -2 +2])

Input and Output of ASK modulation matlab source code

Run the downloaded ASKModulation.m file after unzipping the folder. and provide input as follows.

ASK matlab code input

After the input is given press "ENTER" key, you will get output matlab image as below.

ASK matlab code output

DOWNLOAD ASK matlab code .m file

Download ASKModulation rar file containing matlab file>>.


Useful Links to MATLAB codes

Refer following as well as links mentioned on left side panel for useful MATLAB codes.
OFDM Preamble generation  Time off estimation corr  Freq off estimation corr  channel estimation  11a WLAN channel  PN sequence generation  OFDMA Tx Rx  AES DES  carrier aggregation  CCDF  FIR Filter  IIR Filter  Low Pass FIR  Viterbi decoder  CRC8 CRC32 

RF and Wireless tutorials

WLAN  802.11ac  802.11ad  wimax  Zigbee  z-wave  GSM  LTE  UMTS  Bluetooth  UWB  IoT  satellite  Antenna  RADAR