You are on page 1of 32

Matlab and Simulink Mathworks, Inc.

Natick, Massachusetts

Matlab/Simulink Web Resources

http://www.mathworks.com

The Matlab/Simulink Student Version has the Signal Processing Tools but NOT the Communications tool set. The Mathworks/Simulink software installed at PCLAB is complete although usually one version behind the latest release, which is not a problem since Mathworks usually releases two versions a year.

Create a Mathworks account on the Mathworks web page which is required to view/download tutorial material. Also a good idea to use your UHCL email address for the Mathworks account which will tie you to the UHCL domain where all the UHCL Mathworks software is located. For training on the use of the tools, look under Products & Services Demos and Webinars for all of the applicable products (Matlab, Simulink, Signal Processing Toolbox & Blockset, Communications Toolbox & Blockset, RF Toolbox, SimRF). Silage Quick-Start Simulink Files (File Name: Silage.zip) used as a easy and quick start on gaining familiarity with the tools, Zip file on the course webpage.
Fig12.mdl Fig16.mdl Fig18.mdl Fig111.mdl Fig113.mdl Fig116.mdl Fig120.mdl Fig312.mdl Random Integer Generator (Comm Source/Sinks Display) wave rectifier wave rectifier Spectral Display Lowpass Filter Lowpass Filter Autocorrelation DSB AM with Coherent Demodulation Noncoherent Demodulator BPSK Simulation

Example of the Simulink code in the Simulink file Fig116.mdl


Fig 116.mdl DSP AM Communications Model Code File Model { Name "Fig116" Version 7.0 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.21" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings"

EE4512 Analog and Digital Communications

Chapter 1

Modulation (partial definition): 3: to vary the amplitude, frequency, or phase of (a carrier wave or a light wave) for the transmission of information (as by radio) Carrier (partial definition): 2: an electromagnetic wave or alternating current whose modulations are used as communications signals (as in radio, telephonic, or telegraphic transmissions

EE4512 Analog and Digital Communications

Chapter 1

Analog modulation: continuous information such as speech or video encoded as an amplitude Digital modulation: discrete information such as binary data encoded as a frequency shift or a phase shift

EE4512 Analog and Digital Communications

Chapter 1

Source

Simulink subsystems Transmitter Receiver

User

Channel with noise

MS Figure 1.16 Analog amplitude modulation (AM)

EE4512 Analog and Digital Communications

Chapter 1

Source

Simulink subsystems Transmitter Receiver

User

Coherent demodulation MS Figure 1.16

Channel with noise

Analog amplitude modulation (AM)

EE4512 Analog and Digital Communications

Chapter 1

Source

Simulink subsystems Transmitter Receiver

User

Non-coherent demodulation

Channel with noise

MS Figure 1.20

Analog amplitude modulation (AM)

EE4512 Analog and Digital Communications

Chapter 1

Sinusoidal input and DSB AM

EE4512 Analog and Digital Communications

Chapter 1

Simulink subsystem Sinusoidal input and DSB AM

EE4512 Analog and Digital Communications

Chapter 1

Carrier DSB modulated spectrum

DSB AM temporal signal and power spectrum

EE4512 Analog and Digital Communications

Chapter 1

Original spectrum

DSB demodulated spectrum

2 x carrier frequency

Demodulated DSB AM spectrum

EE4512 Analog and Digital Communications

Chapter 1

Random data source

Bit error rate MS Figure 3.12

Digital binary phase shift keying (BPSK)

EE4512 Analog and Digital Communications

Chapter 1

Input binary data, rate rb = 1 kb/sec, bit time Tb = 1 msec Tb = 1 msec

Output

binary data with no noise, note 2 bit delay in output

EE4512 Analog and Digital Communications

Chapter 1

Input binary data, rate rb = 1 kb/sec, bit time Tb = 1 msec

Received

signal with significant additive noise

Wheres the signal?

EE4512 Analog and Digital Communications

Chapter 1

Input binary data, rate rb = 1 kb/sec, bit time Tb = 1 msec

Output

binary data with bit errors due to additive noise

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Simulink Library Browser: Commonly Used Blocks

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Simulink Library Browser: Communications Blockset

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Simulink Library Browser: Signal Processing Blockset

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Simulink Library Browser: Simulink Extras

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Simulink Library Browser and the model window

MS Figure 1.2

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Source parameter block for the Random Integer Generator block and the Simulink model window

MS Figure 1.3

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Configuration parameter window for the Simulink simulation

MS Figure 1.4

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Sinusoid and half wave rectified sinusoid Simulink temporal model

MS Figure 1.6

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Sinusoid and half wave rectified sinusoid temporal display in the Simulink Figures window MS Figure 1.7

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Half wave rectified sinusoid Simulink spectral display model

MS Figure 1.8

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Scope and axis properties parameter windows of the Spectrum Scope block MS Figure 1.9

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Scaled power spectral display of a half wave rectified sinusoid, fo = 1 kHz

MS Figure 1.10

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Gaussian noise source and lowpass filtered power spectral density display MS Figure 1.11

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Gaussian noise source and LPF PSD Flat PSD

MS Figure 1.12

LPF PSD, fcutoff = 11.25 kHz

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Gaussian noise source and lowpass filtered autocorrelation display MS Figure 1.13

EE4513 Analog and Digital Communications Laboratory

Chapter 1

Gaussian noise source and lowpass filtered power autocorrelation display MS Figure 1.14

Uncorrelated

Correlated

You might also like