Skip to main content
Home Wireless Communication Modulation MATLAB Beamforming Project Ideas MIMO Computer Networks Lab 🚀

Effect of Noise on Constellation Diagram of ASK


MATLAB Code

% The code is written by SalimWireless.Com

% Clear previous data and plots
clc; % Clear the command window
clear all; % Remove all variables from the workspace
close all; % Close all figure windows

% Parameters
Tb = 1; % Bit duration in seconds
fc = 10; % Carrier frequency in Hz
N = 10; % Number of bits to transmit

% Generate carrier signal
t = 0:Tb/100:1; % Time vector for one bit duration with 100 samples
carrier_signal = sqrt(2/Tb) * sin(2*pi*fc*t); % Normalized carrier signal

% Generate message signal
rng(10); % Set random seed for reproducibility
binary_data = rand(1, N); % Generate random binary data between 0 and 1

% Initialize time intervals for message bits
t_start = 0;
t_end = Tb;

% Loop to generate and modulate each bit
for i = 1:N
t = t_start:0.01:t_end; % Time vector for current bit duration

% Generate binary message signal (1 or 0)
if binary_data(i) > 0.5
binary_data(i) = 1;
message_signal = ones(1, length(t)); % Bit value 1
else
binary_data(i) = 0;
message_signal = zeros(1, length(t)); % Bit value 0
end

% Store message signal
message(i,:) = message_signal;

% Amplitude Shift Keying (ASK) modulation
ask_signal(i,:) = carrier_signal .* message_signal;

% Update time intervals for next bit
t_start = t_start + (Tb + 0.01);
t_end = t_end + (Tb + 0.01);
end

% Constellation Diagram
figure(1);
scatterplot(binary_data); % Scatter plot of transmitted binary data
title('Constellation Diagram of Binary ASK');
xlabel('n --->'); % X-axis label
ylabel('b(n)'); % Y-axis label
grid on; % Enable grid

% Effect of noise on ASK constellation diagram
channelAWGN = 15; % SNR value for AWGN channel
rxData2 = awgn(binary_data, channelAWGN); % Add AWGN to binary data
figure(2);
scatterplot(rxData2); % Scatter plot of noisy received data
title('Effect of noise on ASK constellation diagram');
xlabel('n --->'); % X-axis label
ylabel('b(n)'); % Y-axis label
grid on; % Enable grid

Output

 
 
 

 
 

Copy the MATLAB Code from here

 

 

Also read about

[1] Constellation Diagram of ASK

[2] Constellation Diagram of FSK

[3] Constellation Diagram of PSK

People are good at skipping over material they already know!

View Related Topics to







Admin & Author: Salim

profile

  Website: www.salimwireless.com
  Interests: Signal Processing, Telecommunication, 5G Technology, Present & Future Wireless Technologies, Digital Signal Processing, Computer Networks, Millimeter Wave Band Channel, Web Development
  Seeking an opportunity in the Teaching or Electronics & Telecommunication domains.
  Possess M.Tech in Electronic Communication Systems.


Contact Us

Name

Email *

Message *

Popular Posts

Channel Impulse Response (CIR)

Channel Impulse Response (CIR) Wireless Signal Processing CIR, Doppler Shift & Gaussian Random Variable  The Channel Impulse Response (CIR) is a concept primarily used in the field of telecommunications and signal processing. It provides information about how a communication channel responds to an impulse signal.   What is the Channel Impulse Response (CIR) ? It describes the behavior of a communication channel in response to an impulse signal. In signal processing,  an impulse signal has zero amplitude at all other times and amplitude  ∞ at time 0 for the signal. Using a Dirac Delta function, we can approximate this.  ...(i) δ( t) now has a very intriguing characteristic. The answer is 1 when the Fourier Transform of  δ( t) is calculated. As a result, all frequencies are responded to equally by  δ (t). This is crucial since we never know which frequencies a system will affect when examining an unidentified one. Since it can test the system for all freq

ULA Arrays and Their Array Response

  The array response vectors for uniform linear arrays (ULA) with elements, N are represented as       Similarly, for Uniform Planer arrays (UPA), the array response vectors can be represented as,        Where 0 ≤ x ≤ W 1 -1 and 0 ≤   y ≤   W 2 -1         Fig : Directional cosine vectors at each antenna element       In figure above, it is illustrated that when transmitted signal reaches at receiver it creates different path lengths at different antenna element. Here in figure the second ray creates path-length difference of dcosθ with the first element. As there will be phase difference for same angle of departure (AOD) rays transmitted from Tx side. The corresponding calculation of phase difference is shown in figure.

BER vs SNR for M-ary QAM, M-ary PSK, QPSK, BPSK, ...

Modulation Constellation Diagrams BER vs. SNR BER vs SNR for M-QAM, M-PSK, QPSk, BPSK, ... 1. What is Bit Error Rate (BER)? The abbreviation BER stands for bit error rate, which indicates how many corrupted bits are received (after the demodulation process) compared to the total number of bits sent in a communication process. It is defined as,  In mathematics, BER = (number of bits received in error / total number of transmitted bits)  On the other hand, SNR refers to the signal-to-noise power ratio. For ease of calculation, we commonly convert it to dB or decibels.   2. What is Signal the signal-to-noise ratio (SNR)? SNR = signal power/noise power (SNR is a ratio of signal power to noise power) SNR (in dB) = 10*log(signal power / noise power) [base 10] For instance, the SNR for a given communication system is 3dB. So, SNR (in ratio) = 10^{SNR (in dB) / 10} = 2 Therefore, in this instance, the signal power i

Frequency Bands : EHF, SHF, UHF, VHF, HF, MF, LF, VLF and Their Uses

Frequency Bands EHF, SHF, UHF, VHF, HF, MF, LF... 1. Extremely High Frequency (EHF)30 - 300 GHz Uses 5G Networks 5G millimeter wave band , 6G and beyond (Experimental) RADAR, 2. Super High Frequency (SHF)3 - 30 GHz Uses Ultra-wideband (UWB , Airborne RADAR, Satellite Communication, Microwave Link Communication or SATCOM 3. Ultra High Frequency (UHF)300 - 3000 MHz Uses Satellite Communication, Television, surveillance, navigation aids Also, read important wireless communication terms 4. Very High Frequency (VHF)30 - 300 MHz Uses Television, FM broadcast, navigation aids, air traffic control, 5. High Frequency (HF)3 - 30 MHz Uses Telephone, Telegram and Facsimile, ship to coast, ship to aircraft communication, amateur radio, 6. Medium Frequency (MF)300 - 3000 KHz Uses coast guard communication, direction finding, AM broadcasting , maritime radio, 7. Low Frequency (LF)30 - 300 KHz Uses Radio beacons, Navigational Aids 8. Very Low Frequency (VLF)3 - 30 KHz

Comparisons among ASK, PSK, and FSK | And the definitions of each

Modulation ASK, FSK & PSK Constellation MATLAB Simulink MATLAB Code Comparisons among ASK, PSK, and FSK    Comparisons among ASK, PSK, and FSK Comparison among ASK,  FSK, and PSK Performance Comparison: 1. Noise Sensitivity:    - ASK is the most sensitive to noise due to its reliance on amplitude variations.    - PSK is less sensitive to noise compared to ASK.    - FSK is relatively more robust against noise, making it suitable for noisy environments. 2. Bandwidth Efficiency:    - PSK is the most bandwidth-efficient, requiring less bandwidth than FSK for the same data rate.    - FSK requires wider bandwidth compared to PSK.    - ASK's bandwidth efficiency lies between FSK and PSK. Bandwidth Calculator for ASK, FSK, and PSK The baud rate represents the number of symbols transmitted per second Select Modulation Type: ASK FSK PSK Baud Rate (Hz):

Relationship between Gaussian and Rayleigh distributions

Wireless Signal Processing Gaussian and Rayleigh distributions ... 1. Gaussian Distribution  The Gaussian distribution has a lot of applications in wireless communication. Since noise in wireless communication systems is unpredictable, we frequently assume that it has a Gaussian distribution. Any wireless communication diagram will show the addition of AWGN noise as the signal travels through the channel. Due to its independence from operating frequency, it is known as AWGN, or additive white Gaussian noise. To determine the noise in a signal, we compute noise power density, or noise power / Hz (here, bandwidth in Hz). It mostly serves to represent real-valued random variables whose distributions are unknown in the scientific and social sciences. It has a bell shape. According to the theory of a Gaussian random variable, under certain circumstances, the average of numerous samples (observations) of a random variable with a finite mean and variance is itse

Wireless Communication Interview Questions | Page 2

Wireless Communication Interview Questions Page 1 | Page 2| Page 3| Page 4| Page 5   Digital Communication (Modulation Techniques, etc.) Importance of digital communication in competitive exams and core industries Q. What is coherence bandwidth? A. See the answer Q. What is flat fading and slow fading? A. See the answer . Q. What is a constellation diagram? Q. One application of QAM A. 802.11 (Wi-Fi) Q. Can you draw a constellation diagram of 4QPSK, BPSK, 16 QAM, etc. A.  Click here Q. Which modulation technique will you choose when the channel is extremely noisy, BPSK or 16 QAM? A. BPSK. PSK is less sensitive to noise as compared to Amplitude Modulation. We know QAM is a combination of Amplitude Modulation and PSK. Go through the chapter on  "Modulation Techniques" . Q.  Real-life application of QPSK modulation and demodulation Q. What is  OFDM?  Why do we use it? Q. What is the Cyclic prefix in OFDM?   Q. In a constellation diagram, wh

Calculation of SNR from FFT bins

  Here, you can find the SNR of a received signal from periodogram / FFT bins using the Kaiser operator. The beta (β) parameter characterizes the Kaiser window, which controls the trade-off between the main lobe width and the side lobe level in the frequency domain. For that you should know the sampling rate of the signal.  The Kaiser window is a type of window function commonly used in signal processing, particularly for designing finite impulse response (FIR) filters and performing spectral analysis. It is a general-purpose window that allows for control over the trade-off between the main lobe width (frequency resolution) and side lobe levels (suppression of spectral leakage). The Kaiser window is defined using a modified Bessel function of the first kind.    Steps Set up the sampling rate and time vector Compute the FFT and periodogram Plot the periodogram using FFT Specify parameters for Kaiser window and periodogram Calculate the frequency resolution and signal power Exclude the