QUADRATURE PHASE SHIFT-KEYING (SER vs SNR)

MATLAB code: clc; clear all; close all; N = 10^5; % number of symbols Es_N0_dB = [-3:20]; % multiple Eb/N0 values ipHat = zeros(1,N); for v = 1:length(Es_N0_dB) ip = (2*(rand(1,N)>0.5)-1) + j*(2*(rand(1,N)>0.5)-1); %defining noise energy s = (1/sqrt(2))*ip; % normalization of energy to 1 n = 1/sqrt(2)*[randn(1,N) + j*randn(1,N)]; % white guassian noise, 0dB... Continue Reading →

BINARY PHASE SHIFT-KEYING (BER vs SNR)

  Matlab Code: clc; clear all; close all; N = 10^6;                % number of bits or symbols rand(100);              % initializing the rand() function randn(200);            % initializing the randn() function % Transmitter---------------------------------------------------------------------------------------------------- x = rand(1,N)>0.5; % generating 0,1... Continue Reading →

Introduction to Matplotlib

Today we are going to explore a very interesting library in python called Matplotlib. Matplotlib is a library for making  plots of arrays in Python. It is used for data visualization and data science. Let us check it out. First we have to install matplotlib. In Windows, type cmd in the Search . This takes you... Continue Reading →

Searching for an element using Binary Search

In this blog we will see how a particular element can be searched in a given list.  We will use a technique called Binary Search. For Binary Search, the elements must be sorted. According to Wikipedia, In computer science binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value... Continue Reading →

Measure time of a Python Code

Today we will see how to measure the time of execution of a python code. For this purpose we will be using the timeit module. This module gives simple ways to time small pieces or snippets of Python code. It is important to know how long your code takes to execute. This can tell you... Continue Reading →

Website Powered by WordPress.com.

Up ↑