You are on page 1of 6

Matlab Session 4: Using Matlab (1) Model of BPSK modulation over an AWGN channel (2) Simulate model from

a Matlab script

EE 160: Analog and Digital Communications Robert Morelos-Zaragoza Department of Electrical Engineering San Jose State University Fall 2005

1. Simulation of BPSK modulation over an AWGN channel


(a) Build the following Simulink model:

(b) Before running the model, in the command window, enter the commands: > T=1; > Ts=1/20; > EbNo=5;
Morelos-Zaragoza EE 160 - Matlab Session 4 - SJSU 2

2. Simulation results of BPSK modulation over an AWGN channel


Transmitted signal plus noise

Integrator (MF) output

Original bit sequence

Demodulated bit sequence


Morelos-Zaragoza EE 160 - Matlab Session 4 - SJSU 3

3. Running the model using a script


(a) Modify the Simulink model: Remove the oscilloscope and display (b) Add a To Workspace sink. Be careful in setting Limit points to last to 1

(b) Download and execute the Matlab script


simulate_binary_AWGN_system.m

which is available in the class website


Morelos-Zaragoza EE 160 - Matlab Session 4 - SJSU 4

4. Results of Matlab script

Morelos-Zaragoza

EE 160 - Matlab Session 4 - SJSU

5. Ideas
Increase the simulation time in the script, the simulated and theoretical results should converge Use a pulse shaping filter at the transmitter At the receiver, precede the discrete-time integrator with a multiplier by a replica of the transmitted pulse to construct a correlator

Morelos-Zaragoza

EE 160 - Matlab Session 4 - SJSU

You might also like