Code Monkey home page Code Monkey logo

probability_project-pam_analysis-'s Introduction

Symbol Error Rate Analysis of Pulse Amplitude Modulation (PAM) Levels

Overview

This project simulates the performance of different Pulse Amplitude Modulation (PAM) schemes by analyzing the Symbol Error Rate (SER) against varying Signal-to-Noise Ratios (SNR). The code performs a matched filtering simulation with Additive White Gaussian Noise (AWGN) introduced into the signal, allowing us to measure the robustness of each PAM level in noisy environments.

Features

  • PAM Levels: The script supports 2PAM, 4PAM, 8PAM, 16PAM, 32PAM, and 64PAM modulation levels.
  • Matched Filtering: Convolution-based filtering is applied to recover transmitted symbols from the noisy signal.
  • Symbol Error Rate (SER): The script calculates the error rate based on the difference between transmitted and detected symbols.
  • Visualization: A semilog plot is generated to visualize the SER vs. SNR relationship for different PAM levels.

Script Description

The script performs the following tasks:

  1. Initialization:

    • Defines an array of different PAM levels to be tested (M_ALL = [2, 4, 8, 16, 32, 64]).
    • Sets a range of SNR values for analysis (SNR_range = 1:0.25:20).
    • Initializes a matrix to store the SER for each SNR value and PAM level.
  2. Main Loop:

    • Loops over each PAM level and calculates SER for each SNR value.
    • Generates a pulse and its reversed version for matched filtering.
    • Creates a modulated signal by repeating a random signal and dividing by the square root of the pulse length.
    • Adds AWGN to the modulated signal to simulate real-world conditions.
    • Performs convolution to simulate matched filtering.
    • Calculates the number of errors and the SER for each SNR value and PAM level.
  3. Plotting the Results:

    • Uses semilogy to plot SER against SNR for each PAM level.
    • Adds a legend, labels, and title for the plot.
    • Enables the grid for better visualization.

This project demonstrates the relationship between SNR and SER for various PAM levels. The results can help understand the performance of different modulation schemes under noisy conditions, providing valuable insights into communication systems design.

probability_project-pam_analysis-'s People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.