Sei sulla pagina 1di 59

21 25 April 2014

Mahamod Ismail
\\10.2.88.100
1

Introduction
Simulation and Modeling
Simulation Tools
Simulation with Matlab

Telecommunication
Research
Methods

Depends upon time, resources, and


desired level of accuracy
Analytic/mathematical modeling : Quick, less
accurate
Simulation : Medium effort, medium accuracy
Measurement : Typical most effort, most
accurate

Note, above are all typical


but can be reversed in some cases!

The difference between a model and a


simulation is in the form of the output.
Modeling usually deals with numerical
outputs, e.g. with a spreadsheet model you
could use formulae and functions to
calculate the stresses on a bridge.
A simulation might try to physically
represent this by showing a graphic of how
the bridge breaks as a truck passes over it.

A Simulation of a system is the operation of a model,


which is a representation of that system. The reasons of
the need to model and simulate a system are:

The model is amenable to manipulation which would be


impossible, too expensive, or too impractical to perform
on the system which it portrays.

The operation of the model can be studied, and, from


this, properties concerning the behavior of the actual
system can be inferred

10

A computer simulation, a computer


model, or a computational model is a
computer program, or network of computers,
that attempts to simulate an abstract model of
a particular system.
Computer simulations have become a useful
part of mathematical modeling of many
natural systems in physics (computational
physics), astrophysics, chemistry and biology,
human systems in economics, psychology,
social science, and engineering.

10

Advantages
Can be safer and cheaper than the real world.
Able to test a product or system works before
building it.
Can use it to find unexpected problems.
Able to explore what if questions.
Can speed things up or slow them down to see
changes over long or short periods of time.

11

11

Disadvantage
Mistakes may be made in the
programming[programming: The process of
writing computer software.] or rules of the
simulation or model.
The cost of a simulation model can be high.
The cost of running several different simulations
may be high.
Time may be needed to make sense of the
results.
Peoples reactions to the model or simulation
might not be realistic or reliable.

12

12

13

14

Bit Arrival in a Queue


bit

bit

time
Continuous
Model

# of cars in a parking lot

Discrete
Model

time
15

16

17

18

19

Qualnet
OPNET
OMNET++
Network Simulator
MATLAB
Scilab
OptSim
SatSoft
Antenna 2.0
Microwave Office
EM CST microwave

20

21

22

23

24

MATLAB is a high-level
language and interactive
environment for numerical
computation, visualization,
and programming.
Using MATLAB
(communication toolbox),
we can analyze data,
develop algorithms, and
create models and
applications, e.g. C&C

25

A software package for scientific


and engineering computing, quite
similar to Matlab
Scilab is a tool for numeric
computing, as are Excel, GNU
Octave, Matlab, etc. The
alternative is symbolic computing,
to which belong Maple, MathCad,
Mathematica, and others
Developed by Consortium Scilab
(DIGITEO), behind which are a
number of French institutions and
companies
Scilab is free and can be
downloaded at www.scilab.org

26

Symbolic versus numerical; Open and


closed loop
Software package

Mathematica
Simscript
Scilab
Mathcad

27

1.

2.

3.

How to simulate a wireless


communication in MATLAB? I want to
create wireless nodes and simulate a
communication between them.
I am wondering if anybody has an idea of
how I can simulate a mobile wireless
network (Ad-Hoc) of a few nodes using
MATLAB.
How do I simulate and model network
traffic in Matlab?

28

29

30

What is Matlab?
Matlab

or MathLab?
MATLAB= MATrixLABoratory
A High Level and Fourth Generation
programming language developed by MathWorks
and widely used in Academic and Research
Institutions as well as Industrial Enterprises
An interactive technical computing environment.
Algorithm Development
Data Analysis and Visualization
Numerical Computation

31

32

33

Version

Release
Year
name

MATLAB 1.0

1984

MATLAB 2

1986

MATLAB 3

1987

MATLAB 3.5

1990

MATLAB 4

1992

MATLAB 4.2c

R7

1994

MATLAB 5.0

R8

1996

MATLAB 5.1

R9

MATLAB 5.1.1

R9.1

MATLAB 5.2

R10

MATLAB 5.2.1

R10.1

1997

1998

Release Date

Notes

Ran on MS-DOS but required at least


a 386 processor. Version 3.5m
required math coprocessor
Ran on Windows 3.1. Required a math
coprocessor
December, 1996
May, 1997

March, 1998

34

MATLAB 6.0
MATLAB 6.1
MATLAB 6.5
MATLAB 6.5.1
MATLAB 6.5.2
MATLAB 7
MATLAB 7.0.1
MATLAB 7.0.4
MATLAB 7.1
MATLAB 7.2
MATLAB 7.3
MATLAB 7.4

Release
name
R12
R12.1
R13
R13SP1
R13SP2
R14
R14SP1
R14SP2
R14SP3
R2006a
R2006b
R2007a

MATLAB 7.5

R2007b

Version

Year

Release Date

2000
2001
2002

November, 2000
June, 2001
July, 2002

Notes

2003
2004
2005
2006

2007

June, 2004
October, 2004
March 7, 2005
September 1, 2005
March 1, 2006
September 1, 2006 HDF5-based MAT-file support
March 1, 2007
Last release for Windows 2000
and PowerPC Mac. License
September 1, 2007
Server support for Windows
Vista
35

MATLAB 7.6

Release
name
R2008a

MATLAB 7.7

R2008b

MATLAB 7.8

R2009a

Version

Year
2008

Release Date
March 1, 2008
October 9, 2008
March 6, 2009

2009
MATLAB 7.9

R2009b

September 4, 2009

MATLAB 7.9.1 R2009bSP1


MATLAB 7.10

R2010a

MATLAB 7.11

R2010b

First release for 32-bit &


64-bit Windows 7.
First release for Intel 64-bit
Mac, and last for Solaris
SPARC.

April 1, 2010
2010

March 5, 2010

Last release for Intel 32-bit


Mac.

September 3, 2010

MATLAB 7.11.1 R2010bSP1


MATLAB 7.12 R2011a
MATLAB 7.13/ R2011b/
7.14
R2012a

Notes

March 17, 2011


2011

April 8, 2011
September 1, 2011
36

37

MATLAB 8

Release
name
R2012b

MATLAB 8.1

R2013a

2013

March 7, 2013

MATLAB 8.2

R2013b

2013

Sept. 6, 2013

Version

MATLAB 8.3

R2014a

Year

Release Date

2012

September 11, 2012

2014

March 6, 2014

Notes
Running on Windows 8
Simplified compiler setup
for building MEX-files.
LTE Toolbox

38

39

40

MATLAB/Simulink Product Family


Fixed-Point Modeling
Simulink Fixed Point
Event-Based

Modeling

Stateflow
SimEvents
Physical

Modeling

Simscape
SimMechanics
SimDriveline
SimHydraulics
SimRF
SimElectronics
SimPowerSystems

41

MATLAB product family


Parallel Computing
Parallel Computing Toolbox
MATLAB Distributed Computing Server
Math,

Statistics, and Optimization

Symbolic Math Toolbox


Partial Differential Equation Toolbox
Statistics Toolbox
Curve Fitting Toolbox
Optimization Toolbox
Global Optimization Toolbox
Neural Network Toolbox
Model-Based Calibration Toolbox

42

MATLAB product family


Control System Design and Analysis

Control System Toolbox


System Identification Toolbox
Fuzzy Logic Toolbox
Robust Control Toolbox
Model Predictive Control Toolbox
Aerospace Toolbox

Image

Processing and Computer Vision

Image Processing Toolbox


Computer Vision System Toolbox
Image Acquisition Toolbox
Mapping Toolbox

43

MATLAB product family


Signal Processing and Communications

Signal Processing Toolbox


DSP System Toolbox
Communications System Toolbox
Wavelet Toolbox
Fixed-Point Toolbox
RF Toolbox
Phased Array System Toolbox

Computational

Biology

Bioinformatics Toolbox
SimBiology

44

MATLAB product family


Test and Measurement

Data Acquisition Toolbox


Instrument Control Toolbox
Image Acquisition Toolbox
OPC Toolbox
Vehicle Network Toolbox

Computational

Finance

Financial Toolbox
Econometrics Toolbox
Datafeed Toolbox
Fixed-Income Toolbox
Financial Derivatives Toolbox

45

MATLAB/Simulink Product Family


Code Generation
MATLAB Coder
Filter Design HDL Coder
Application

Deployment

MATLAB Compiler
MATLAB Builder NE (for Microsoft .NET Framework)
MATLAB Builder JA (for Java language)
MATLAB Builder EX (for Microsoft Excel)
Spreadsheet Link EX (for Microsoft Excel)

Database

Connectivity and Reporting

Database Toolbox
MATLAB Report Generator

46

MATLAB/Simulink Product Family


Fixed-Point Modeling
Simulink Fixed Point
Event-Based

Modeling

Stateflow
SimEvents
Physical

Modeling

Simscape
SimMechanics
SimDriveline
SimHydraulics
SimRF
SimElectronics
SimPowerSystems

47

MATLAB/Simulink Product Family


Control System Design and Analysis
Simulink Control Design
Simulink Design Optimization
Aerospace Blockset
Signal

Processing and Communications

DSP System Toolbox


Communications System Toolbox
SimRF
Computer Vision System Toolbox

Simulation

Graphics and Reporting

Simulink 3D Animation
Gauges Blockset
Simulink Report Generator

48

MATLAB/Simulink Product Family


Code Generation

Simulink Coder / Embedded Coder


Simulink HDL Coder / Simulink PLC Coder
DO Qualification Kit (for DO-178)
IEC Certification Kit (for ISO 26262 and IEC 61508)

Rapid

Prototyping and HIL Simulation

xPC Target / xPC Target Embedded Option


Real-Time Windows Target
Verification,

Validation, and Test

Simulink Verification and Validation


Simulink Design Verifier
System Test
EDA Simulator Link
Simulink Code Inspector

49

MATLAB Version 8.3 (R2014a)


Simulink Version 8.3 (R2014a)
Aerospace Blockset Version 3.13 (R2014a)
Aerospace Toolbox Version 2.13 (R2014a)
Bioinformatics Toolbox Version 4.4 (R2014a)
Communications System Toolbox Version 5.6 (R2014a)
Computer Vision System Toolbox Version 6.0 (R2014a)
Control System Toolbox Version 9.7 (R2014a)
Curve Fitting Toolbox Version 3.4.1 (R2014a)
DO Qualification Kit Version 2.3 (R2014a)
DSP System Toolbox Version 8.6 (R2014a)
Data Acquisition Toolbox Version 3.5 (R2014a)
Database Toolbox Version 5.1 (R2014a)
Datafeed Toolbox Version 4.7 (R2014a)
Econometrics Toolbox Version 3.0 (R2014a)
Embedded Coder Version 6.6 (R2014a)

50

Filter Design HDL Coder Version 2.9.5 (R2014a)


Financial Instruments Toolbox Version 1.3 (R2014a)
Financial Toolbox Version 5.3 (R2014a)
Fixed-Point Designer Version 4.2 (R2014a)
Fuzzy Logic Toolbox Version 2.2.19 (R2014a)
Gauges Blockset Version 2.0.9 (R2014a)
Global Optimization Toolbox Version 3.2.5 (R2014a)
HDL Coder Version 3.4 (R2014a)
HDL Verifier Version 4.4 (R2014a)
IEC Certification Kit Version 3.3 (R2014a)
Image Acquisition Toolbox Version 4.7 (R2014a)
Image Processing Toolbox Version 9.0 (R2014a)
Instrument Control Toolbox Version 3.5 (R2014a)
LTE System Toolbox Version 1.1 (R2014a)

51

MATLAB Builder EX Version 2.5 (R2014a)


MATLAB Builder JA Version 2.3.1 (R2014a)
MATLAB Builder NE Version 4.2.1 (R2014a)
MATLAB Coder Version 2.6 (R2014a)
MATLAB Compiler Version 5.1 (R2014a)
MATLAB Report Generator Version 3.16 (R2014a)
Mapping Toolbox Version 4.0.1 (R2014a)
Model Predictive Control Toolbox Version 4.2 (R2014a)
Model-Based Calibration Toolbox Version 4.7 (R2014a)
Neural Network Toolbox Version 8.2 (R2014a)
OPC Toolbox Version 3.3.1 (R2014a)
Optimization Toolbox Version 7.0 (R2014a)
Parallel Computing Toolbox Version 6.4 (R2014a)
Partial Differential Equation Toolbox Version 1.4 (R2014a)
Phased Array System Toolbox Version 2.2 (R2014a)

52

Polyspace Bug Finder Version 1.1 (R2014a)


Polyspace Code Prover Version 9.1 (R2014a)
RF Toolbox Version 2.14 (R2014a)
Real-Time Windows Target Version 4.4 (R2014a)
Robust Control Toolbox Version 5.1 (R2014a)
Signal Processing Toolbox Version 6.21 (R2014a)
SimBiology Version 5.0 (R2014a)
SimDriveline Version 2.6 (R2014a)
SimElectronics Version 2.5 (R2014a)
SimEvents Version 4.3.2 (R2014a)
SimHydraulics Version 1.14 (R2014a)
SimMechanics Version 4.4 (R2014a)
SimPowerSystems Version 6.1 (R2014a)
SimRF Version 4.2 (R2014a)
Simscape Version 3.11 (R2014a)

53

LTE System Toolbox Version 1.1 (R2014a)


Simulate physical layer of LTE and LTE-Advanced wireless
communications systems

Key Features

Standard-compliant models for LTE and LTE-Advanced


(Releases 8, 9, and 10)
End-to-end physical layer transmit and receive processing
functions, including OFDM (downlink) and SC-FDMA (uplink)
MIMO antenna transmission and UE-specific beamforming
functions
Channel estimation, synchronization, and MIMO receiver
functions
Standard-compliant propagation channel models
Test models and reference measurement channel (RMC)
waveform generators
Interactive tools for conformance and BER testing
Recovery of low-level parameters, such as cell identity

54

Simulink 3D Animation Version 7.1 (R2014a)


Simulink Code Inspector Version 2.1 (R2014a)
Simulink Coder Version 8.6 (R2014a)
Simulink Control Design Version 4.0 (R2014a)
Simulink Design Optimization Version 2.5 (R2014a)
Simulink Design Verifier Version 2.6 (R2014a)
Simulink PLC Coder Version 1.7 (R2014a)
Simulink Real-Time Version 6.0 (R2014a)
Simulink Report Generator Version 3.16 (R2014a)
Simulink Verification and Validation Version 3.7 (R2014a)
Spreadsheet Link EX Version 3.2.1 (R2014a)
Stateflow Version 8.3 (R2014a)
Statistics Toolbox Version 9.0 (R2014a)
Symbolic Math Toolbox Version 6.0 (R2014a)
System Identification Toolbox Version 9.0 (R2014a)
SystemTest Version 2.6.7 (R2014a)
Trading Toolbox Version 2.1 (R2014a)
Vehicle Network Toolbox Version 2.2 (R2014a)
Wavelet Toolbox Version 4.13 (R2014a)

55

56

MATLAB Sites
Rob

Maunders@Soton

http://users.ecs.soton.ac.uk/rm/
Wireless

Network Simulator in Matlab

http://wireless-matlab.sourceforge.net/
Dr.

Bernd-Peter Paris@George Mason

http://www.spec.gmu.edu/~pparis/
Prowler:

Probabilistic Wireless Network Simulator

http://www.isis.vanderbilt.edu/projects/nest/prowler/
Check

Latest Learning Resources

http://www.mathworks.com/academia/student_center/tutoria
ls/launchpad.html

57

http://www.mathworks.com/help/techdoc/
http://home.hit.no/~hansha/
http://www.imc.tue.nl/

58

59

Potrebbero piacerti anche