Home of RF and Wireless Vendors and Resources

One Stop For Your RF and Wireless Need

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.

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

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);
bw = bw(100:end);
sint = sin(2*pi*t);
st = bw.*sint;
grid on ; axis([0 n -2 +2])
grid on ; axis([0 n -2 +2])
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 

Share this page

Translate this page