Embedded Communications in Wireless Sensor Network
Download
Report
Transcript Embedded Communications in Wireless Sensor Network
Chapter 1:
Brief Overview of
MATLAB
MATLAB
for Scientist and Engineers
Using Symbolic Toolbox
You are going to
Expose yourself to the history of MATLAB,
See what MATLAB provides,
Look at a symbolic math example.
2
Old History of MATLAB
1967: "Computer solution of linear algebraic
equations", Forsythe and Moler
1971: "Handbook for automatic
computations" in ALGOL,
J. H. Wilkinson et. al.
Cleve Moler
(1939~)
J.H.Wilkinson, UK
(1919~1986)
1976: "Matrix Eigensystem Routines,
EISPACK Guide" in FORTRAN
1976~9: "LINPACK" in FORTRAN
1977~: "MATLAB Environment", Cleve Moler
1979: "Numerical analysis" lecture at Stanford,
met with Jack Little, then an engineering student
1984: MathWorks founded by Jack and Moler
Jack Little
3
Further Digging Resources
Video: The Origins of MATLAB at MathWorks.com
Meet Mr Matlab at Scientific Computing World
http://en.wikipedia.org/wiki/Cleve_Moler
BLAS at Netlib.org
http://www.scientific-computing.com/features/feature.php?feature_id=15
Cleve Moler at Wikipedia
http://www.mathworks.com/company/aboutus/founders/clevemoler.html
http://www.netlib.org/blas/
Maple at Wikipedia and Maplesoft.com
http://en.wikipedia.org/wiki/Maple_(software)
http://www.maplesoft.com/index1.aspx
4
MATLAB? Matrix Laboratory
Matrix Arithmetic, Eigen Analysis, ...
>> b=floor(10*rand(3))
>> c=a*b
b =
1
5
3
c = 32
77
80
6
1
8
54
62
105
3
6
8
64
41
100
>> d=a/b
>> a=magic(3)
a =
8
1
6
d = 2.3934
2.0164
-2.1639
3
5
7
0.1475
0.1311
0.6885
4
9
2
5.0820
1.2951
-2.9508
5
Graphics & Visualization
0.35
0.3
20
0.25
40
0.2
0.15
60
0.1
0.05
80
1
0
0.8
100
-0.05
0.6
-0.1
0.4
-0.15
0
0.5
1
120
1.5 0.2
2
2.5
3
3.5
4
20
40
60
80
100
120
0
-0.2
-0.4
-0.6
-0.8
-1
0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
6
Graphical User Interface
fifteen
fdatool
Try them for yourself!
xpbombs
7
Toolboxes
Eye Diagram
5
Equalizer BER Comparison
0
10
4
-1
10
3
-2
10
1
BER
Amplitude
2
0
-1
-3
10
-4
10
Ideal BPSK
Linear Equalizer
DFE
Ideal MLSE
Imperfect MLSE
-2
-5
10
-3
-4
-0.5
-6
10
0
Time
0.5
0
2
4
6
8
10
Eb/No (dB)
12
14
16
Magnitude Response (dB)
20
0
Magnitude (dB)
-20
-40
-60
-80
-100
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
Normalized Frequency ( rad/sample)
0.8
0.9
8
SIMULINK
Model-based design environment
Ref: Help – Video and Image Processing Blockset – Demos – Motion Detection
9
They Use MATLAB for …
Math and computation
Algorithm development
Data acquisition
Modeling, simulation, and prototyping
Data analysis, exploration, and visualization
Scientific and engineering graphics
Application development, including graphical
user interface building
Ref: Help – MATLAB – Getting Started – Introduction – Product Overview
10
The MATLAB System
The MATLAB system consists of these main parts:
Desktop Tools and Development Environment
Mathematical Function Library
The Language
Graphics
External Interfaces; API
+
Toolboxes: MATLAB function packages
Simulink: Model-based design
Blocksets: Simulink model packages
Ref: Help – MATLAB – Getting Started – Introduction – Product Overview
11
What is Symbolic Computing
Position of an oscillating mass:
Position e2t cos(6 t ) sin(6 t)
Velocity?
General Solution
View underlying mathematics
Ref: Webinar – Symbolic Computing Tools for Academia
12
Symbolic Math Usage in Academia
Ref: Webinar – Symbolic Computing Tools for Academia
13
Working w/t Symbolic Math Toolbox
From MATLAB
From Notebook Interface
Sharing
Perform symbolic computations
using familiar MATLAB syntax
Conveniently manage & document
symbolic computations
Math notation, embedded text, graphics
Access complete MuPAD language
15+libraries of symbolic math functions
Ref: Webinar – Symbolic Computing Tools for Academia
14
Demo: Mass-Spring-Damp System
Dynamic Equation
mx(t ) Rx(t ) kx(t ) 0
Initial Conditions
x(0) 0, x(0) 1
Symbolic Math Solution
Ref: Webinar – Symbolic Computing Tools for Academia
mass_spring_damp_system.mn
15
Symbolic Math Toolbox Libraries
Calculus
Fourier transform
Laplace transform
Z-transform
Simplification
Polynomial Expansion
Substitution
Operations
Eigenvalues
Special Functions
Algebraic Equations
Differential Equations
Transforms
Linear Algebra
Solving Equations
Differentiation
Integrals
Jacobian
Taylor series
Limits
Bernoulli, Bessel, Beta, …
Fresnel sine/cosine integral,
Gamma
Variable Precision
Arithmetic
Plotting
2-D
3-D contour, surface, mesh
Animations
Ref: Webinar – Symbolic Computing Tools for Academia
16