0% found this document useful (0 votes)
16 views

Module 3 - Lab-3

This document discusses generating and analyzing complex baseband signals used in wireless communications using MATLAB. It describes creating a chirped waveform or linear frequency modulated pulse to simulate a radar transmitter. The key steps are: 1) Define signal parameters like sample rate, pulse width, bandwidth. 2) Generate the I and Q components as chirp signals with initial phases offset by 90 degrees. 3) Normalize and plot the IQ data along with its envelope to visualize the linear frequency modulated pulse cycle. Exercises include plotting signals with multiple frequency components and varying plot properties to analyze the complex baseband signal generation.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Module 3 - Lab-3

This document discusses generating and analyzing complex baseband signals used in wireless communications using MATLAB. It describes creating a chirped waveform or linear frequency modulated pulse to simulate a radar transmitter. The key steps are: 1) Define signal parameters like sample rate, pulse width, bandwidth. 2) Generate the I and Q components as chirp signals with initial phases offset by 90 degrees. 3) Normalize and plot the IQ data along with its envelope to visualize the linear frequency modulated pulse cycle. Exercises include plotting signals with multiple frequency components and varying plot properties to analyze the complex baseband signal generation.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

[Wireless Communications-matlab]

1
[matlab programming]

Module 3<Topic 1>< Matlab Programme on Base


Band Signal(complex)>
Course Learning Outcomes:
C7. Use communication toolbox and programming with wireless communication and computation
platforms to evaluate the appropriateness of scripting and simulations
C8. With less supervision, collaborate work with a group to develop and communicate reasonable
recommendations for the script debugging.

Activity 1 : Generation of Base Band Signals(complex)


In this experiment, you will learn how to represent, manipulate, and analyze a complex base band signal
used in wireless communication system and plot the signal.

1. to study how to construct a complex base band signal in MATLAB,

2. to study the MATLAB function required for analyzing the base band signal used in wireless
communication

3. to use plot to plot the Base band signal.

Introduction

In wirlesscommunications complex base band signals are also known as complex envelop signals.

Course Module
The IQ signal xc(t) has associated complex envelope,

Note that you can get the original signal xc(t) by multiplying (spinning) the complex envelope by the complex
sinusoid

The block diagram performs this operation in the transmitter when the sine and cosine multiplier outputs are
summed together.

The complex baseband/envelope signal, by definition, is centered in the frequency domain at f = 0. The
simulation results are based on complex envelope modeling. The high frequency carrier doesn’t need to be
generated in the simulation, so the sampling rate can be kept low, at just 10 times the bit (symbol) rate.

You can still model small carrier frequency offsets/errors and carrier phase errors. See, you can make good use
of signals and systems knowledge for communication systems modeling.

This example shows the creation of a complex baseband (IQ) signal with MATLAB
[Wireless Communications-matlab]
3
[matlab programming]

In this example we will create a chirped waveform, or linear frequency modulated (LFM) pulse. Such
waveforms may be used to simulate the output of the transmitter module of a pulse‐doppler RADAR.

% Define parameters of the LFM pulse.


sampleRate = 1e8; % Define sample rate of baseband signal (Hz)
pulseWidth = 10e‐6; % Define pulse width (seconds)
pulseRepititionInterval = 50e‐6;% Define pulse repetition interval (seconds)
bandWidth = 10e6; % Bandwidth of the pulse (Hz)
IPhase = 0; % Initial phase in degrees of IComponent
QPhase = 90; % Initial phase in degrees of QComponent

tVector = 0:1/sampleRate:pulseWidth; % Vector to generate ideal pulse


IComponent = chirp(tVector,‐bandWidth/2,tVector(end), bandWidth/2,'linear',IPhase);
QComponent = chirp(tVector,‐bandWidth/2,tVector(end), bandWidth/2,'linear',QPhase);
IQData = IComponent + 1i*QComponent;

% Normalize amplitude.
scale = max(max(abs(real(IQData))), max(abs(imag(IQData))));
idealPulse = IQData / scale;

% Pad the pulse with zeros for the off cycle of the pulse.
offPulse = 0:1/sampleRate:((pulseRepititionInterval‐pulseWidth)/2);
idealSpacedPulse = [offPulse idealPulse offPulse];

Visualize the LFM Pulse


Plot one cycle of the LFM pulse displaying the inphase and quadrature(IQ) data, and the envelope of the pulse.
figure(1); hold on;
plot((1:length(idealSpacedPulse))/sampleRate, real(idealSpacedPulse),'b')
plot((1:length(idealSpacedPulse))/sampleRate, imag(idealSpacedPulse),'g')
plot((1:length(idealSpacedPulse))/sampleRate, abs(idealSpacedPulse),':r','linewidth',2)
title('One cycle of LFM pulse waveform')
xlabel('Time (s)')
ylabel('Magnitude (V)')
legend('I component','Q component','Envelope')
axis tight; axisLimits = axis; axis([axisLimits(1:2) 1.2*(axisLimits(3:4))])

After obtaining the output in the above programme, Try out the activities given below

1. Plot the complex base band signal with varied values of sample rate, pulse width and bandwidth

2. Vary the axis limit and notice the changes in the plotting.

Course Module
3. Repeat the programme with a pulse repetition interval of 10e6. Notice the changes

4. Write an inference of the activity done with an appropriate conclusion

<Exercises >
1) Construct a sinusoidal signal and cosine signal each having a sum of components fundamental
frequency and odd multiple of fundamental frequency and plot the signals with subplot command.

References and Supplementary Materials


Books and references
1. Wireless Communication Networks and Systems, Global Edition Stallings – 2018

Online Supplementary Reading Materials


● 1. Gordon L. Stüber ‘Principles of Mobile Communication’ springer publications 2016
● MainakChowdhury, ArumitaBiswas ‘Wireless Communication: Theory and Applications’Oxford
university press-2017
● UpenaDalal ‘Wireless communication and networks’ oxford university press-2015
Wireless Multimedia: A Guide to the IEEE 802.15.3 Standard

y = chirp( t , f0 , t1 , f1 ) generates samples of a linear swept-frequency cosine signal at the time instances
defined in array t . The instantaneous frequency at time 0 is f0 and the instantaneous frequency at time t1 is f1
. y = chirp( t , f0 , t1 , f1 , method ) specifies an alternative sweep method option.

You might also like