Matlab Codes Archives - GaussianWaves https://www.gaussianwaves.com/category/matlab-codes/ Signal Processing for Communication Systems Fri, 10 Dec 2021 11:28:46 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 https://i0.wp.com/www.gaussianwaves.com/gaussianwaves/wp-content/uploads/2016/02/cropped-gaussianwaves_logo_120_120.png?fit=32%2C32&ssl=1 Matlab Codes Archives - GaussianWaves https://www.gaussianwaves.com/category/matlab-codes/ 32 32 163393712 Line code – demonstration in Matlab and Python https://www.gaussianwaves.com/2021/01/line-code-demonstration-in-matlab-and-python/ https://www.gaussianwaves.com/2021/01/line-code-demonstration-in-matlab-and-python/#comments Tue, 05 Jan 2021 12:55:27 +0000 https://www.gaussianwaves.com/?p=27755 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

The post Line code – demonstration in Matlab and Python appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2021/01/line-code-demonstration-in-matlab-and-python/feed/ 4 27755
Rician flat-fading channel – simulation https://www.gaussianwaves.com/2020/08/rician-flat-fading-channel-simulation/ https://www.gaussianwaves.com/2020/08/rician-flat-fading-channel-simulation/#comments Sat, 15 Aug 2020 13:54:24 +0000 https://www.gaussianwaves.com/?p=25926 In wireless environments, transmitted signal may be subjected to multiple scatterings before arriving at the receiver. This gives rise to random fluctuations in the received signal and this phenomenon is called fading. The scattered version of the signal is designated as non line of sight (NLOS) component. If the number of NLOS components are sufficiently ... Read more

The post Rician flat-fading channel – simulation appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/08/rician-flat-fading-channel-simulation/feed/ 2 25926
BPSK bit error rate simulation in Python & Matlab https://www.gaussianwaves.com/2020/07/bpsk-python-matlab-bit-error-rate-simulation/ https://www.gaussianwaves.com/2020/07/bpsk-python-matlab-bit-error-rate-simulation/#comments Thu, 23 Jul 2020 07:52:10 +0000 https://www.gaussianwaves.com/?p=25383 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. Why complex baseband equivalent model The passband model and equivalent baseband model are fundamental models for simulating a communication system. In the passband model, also called as waveform simulation ... Read more

The post BPSK bit error rate simulation in Python & Matlab appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/07/bpsk-python-matlab-bit-error-rate-simulation/feed/ 3 25383
Constellation diagram – investigate phase transitions https://www.gaussianwaves.com/2020/06/constellation-diagram-investigate-phase-transitions/ https://www.gaussianwaves.com/2020/06/constellation-diagram-investigate-phase-transitions/#comments Sun, 28 Jun 2020 12:15:57 +0000 https://www.gaussianwaves.com/?p=24087 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

The post Constellation diagram – investigate phase transitions appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/06/constellation-diagram-investigate-phase-transitions/feed/ 4 24087
Generate color noise using Auto-Regressive (AR) model https://www.gaussianwaves.com/2019/12/color-noise-generation-using-auto-regressive-ar-model-power-law-noises/ https://www.gaussianwaves.com/2019/12/color-noise-generation-using-auto-regressive-ar-model-power-law-noises/#comments Wed, 04 Dec 2019 07:16:19 +0000 https://www.gaussianwaves.com/?p=21183 Key focus: Learn how to generate color noise using auto regressive (AR) model. Apply Yule Walker equations for generating power law noises: pink noise, Brownian noise. Auto-Regressive (AR) model An uncorrelated Gaussian random sequence can be transformed into a correlated Gaussian random sequence using an AR time-series model. If a time series random sequence is ... Read more

The post Generate color noise using Auto-Regressive (AR) model appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2019/12/color-noise-generation-using-auto-regressive-ar-model-power-law-noises/feed/ 2 21183
Generating colored noise with Jakes PSD: Spectral factorization https://www.gaussianwaves.com/2019/10/generating-colored-noise-with-jakes-psd-spectral-factorization-method/ https://www.gaussianwaves.com/2019/10/generating-colored-noise-with-jakes-psd-spectral-factorization-method/#respond Thu, 17 Oct 2019 06:16:55 +0000 https://www.gaussianwaves.com/?p=20730 The aim of this article is to demonstrate the application of spectral factorization method in generating colored noise having Jakes power spectral density. Before continuing, I urge the reader to go through this post: Introduction to generating correlated Gaussian sequences. In spectral factorization method, a filter is designed using the desired frequency domain characteristics (like ... Read more

The post Generating colored noise with Jakes PSD: Spectral factorization appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2019/10/generating-colored-noise-with-jakes-psd-spectral-factorization-method/feed/ 0 20730
GMSK implementation and simulation – part 1 https://www.gaussianwaves.com/2019/10/gaussian-minimum-shift-keying-gmsk-implementation-and-simulation-part-1/ https://www.gaussianwaves.com/2019/10/gaussian-minimum-shift-keying-gmsk-implementation-and-simulation-part-1/#respond Thu, 10 Oct 2019 07:38:19 +0000 https://www.gaussianwaves.com/?p=20666 What’s the need for GMSK Minimum shift keying (MSK) is a special case of binary CPFSK with modulation index . It has features such as constant envelope, compact spectrum and good error rate performance. The fundamental problem with MSK is that the spectrum is not compact enough to satisfy the stringent requirements with respect to ... Read more

The post GMSK implementation and simulation – part 1 appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2019/10/gaussian-minimum-shift-keying-gmsk-implementation-and-simulation-part-1/feed/ 0 20666
Exponential random variable – simulation & application https://www.gaussianwaves.com/2019/07/exponential-random-variable/ https://www.gaussianwaves.com/2019/07/exponential-random-variable/#respond Fri, 26 Jul 2019 05:51:23 +0000 https://www.gaussianwaves.com/?p=20310 Introduction An exponential random variable (RV) is a continuous random variable that has applications in modeling a Poisson process. Poisson processes find extensive applications in tele-traffic modeling and queuing theory. They are used to model random points in time or space, such as the times when call requests arriving at an exchange, the times when ... Read more

The post Exponential random variable – simulation & application appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2019/07/exponential-random-variable/feed/ 0 20310
Fresnel zones https://www.gaussianwaves.com/2019/04/fresnel-zones/ https://www.gaussianwaves.com/2019/04/fresnel-zones/#respond Tue, 02 Apr 2019 07:14:32 +0000 https://www.gaussianwaves.com/?p=18930 An important consideration for propagation models are the existence of objects within what is called the first Fresnel zone. Fresnel zones, referenced in Figure 1 are ellipsoids with the foci at the transmitter and the receiver, where the path length between the direct path and the alternative paths are multiples of half-wavelength (). Rays emanating ... Read more

The post Fresnel zones appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2019/04/fresnel-zones/feed/ 0 18930
Modeling diffraction loss : Single knife-edge diffraction model https://www.gaussianwaves.com/2019/04/modeling-diffraction-loss-single-knife-edge-diffraction-model/ https://www.gaussianwaves.com/2019/04/modeling-diffraction-loss-single-knife-edge-diffraction-model/#respond Mon, 01 Apr 2019 06:05:37 +0000 https://www.gaussianwaves.com/?p=18920 Modeling diffraction loss Propagation environments may have obstacles that hinder the radio transmission path between the transmitter and the receiver. Idealized models for estimating the signal loss associated with diffraction by such obstacles are available. The shape of the obstacles considered in these model are too idealized for real-life applications, nevertheless, these models can serve ... Read more

The post Modeling diffraction loss : Single knife-edge diffraction model appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2019/04/modeling-diffraction-loss-single-knife-edge-diffraction-model/feed/ 0 18920