Normalized power gain of dipole antennas

Key focus: Briefly look at linear antennas and various dipole antennas and plot the normalized power gain pattern in polar plot and three dimensional plot. Linear antennas Linear antennas are electrically thin antennas whose conductor diameter is very small compared to the wavelength of the radiation λ. Viewed in a spherical coordinate system (Figure 1), … Read more

Line code – demonstration in Matlab and Python

Line code is the signaling scheme used to represent data on a communication line. There are several possible mapping schemes available for this purpose. Lets understand and demonstrate line code and PSD (power spectral density) in Matlab & Python. Line codes – requirements When transmitting binary data over long distances encoding the binary data using … Read more

Window function – figure of merits

Key focus: Window function smooths the observed signal over the edges. Analysis of some important parameters to help select the window for an application. Spectral leakage As we know, the DFT operation can be viewed as processing a signal through a set of filter banks with bandwidth Δf centered on the bin (frequency) of interest … Read more

Equivalent noise bandwidth (ENBW) of window functions

Key focus: Equivalent noise bandwidth (ENBW), is the bandwidth of a fictitious brick-wall filter that allows same amount of noise as a window function. Learn how to calculate ENBW in applications involving window functions and FFT operation. FFT and spectral leakage As we know, the DFT operation can be viewed as processing a signal through … Read more

BPSK bit error rate simulation in Python & Matlab

Key focus: Simulate bit error rate performance of Binary Phase Shift Keying (BPSK) modulation over AWGN channel using complex baseband equivalent model in Python & Matlab. This post contains interactive python code which you can execute in the browser itself. Why complex baseband equivalent model The passband model and equivalent baseband model are fundamental models … Read more

Constellation diagram – investigate phase transitions

The phase transition properties of the different variants of QPSK schemes and MSK, are easily investigated using constellation diagram. Let’s demonstrate how to plot the signal space constellations, for the various modulations used in the transmitter. Typically, in practical applications, the baseband modulated waveforms are passed through a pulse shaping filter for combating the phenomenon … Read more

Matplotlib histogram and estimated PDF in Python

Key focus: Shown with examples: let’s estimate and plot the probability density function of a random variable using Python’s Matplotlib histogram function. This post contains interactive python code which you can execute in the browser itself. Generation of random variables with required probability distribution characteristic is of paramount importance in simulating a communication system. Let’s … Read more

Design FIR filter to reject unwanted frequencies

Let’s see how to design a simple digital FIR filter to reject unwanted frequencies in an incoming signal. As a per-requisite, I urge you to read through this post: Introduction to digital filter design Background on transfer function The transfer function of a system provides the underlying support for ascertaining vital system response characteristics without … Read more

Linear regression using python – demystified

Key focus: Let’s demonstrate basics of univariate linear regression using Python SciPy functions. Train the model and use it for predictions. Linear regression model Regression is a framework for fitting models to data. At a fundamental level, a linear regression model assumes linear relationship between input variables ($latex x$) and the output variable ($latex y$). … Read more

Generating simulated dataset for regression problems

Key focus: Generating simulated dataset for regression problems using sklearn make_regression function (Python 3) is discussed in this article. Problem statement Suppose, a survey is conducted among the employees of a company. In that survey, the salary and the years of experience of the employees are collected. The aim of this data collection is to … Read more