You are on page 1of 24

MATLAB

for Scientist and Engineers


using Symbolic Toolbox
Byoung-Jo CHOI, PhD University of Incheon

References

Symbolic Math Toolbox 5 MuPAD Tutorial, MathWorks

Symbolic Math Toolbox 5 User's Guide


Mastering MATLAB 7, Duane Hanselman and Bruce Littlefield, Pearson/Prentice Hall, 2005 Numerical Computing with MATLAB, Cleve Moler, MathWorks MATLAB7, , 2009 MATLAB: An Introduction with Applications, Amos Gilat, John Wiley & Sons, Inc., 2004

Graphics and GUIs with MATLAB, 3rd Ed, Patrick Marchand and O. Thomas Holland, Chapman & Hall/CRC, 2003

Course Introductions
MATLAB for Scientist and Engineers Using Symbolic Toolbox

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.
J.H.Wilkinson, UK (1919~1986)

Cleve Moler (1939~)

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

Further Digging Resources


Video: The Origins of MATLAB at MathWorks.com

http://www.mathworks.com/company/aboutus/founders/clevemoler.html

Meet Mr Matlab at Scientific Computing World

http://www.scientific-computing.com/features/feature.php?feature_id=15

Cleve Moler at Wikipedia

http://en.wikipedia.org/wiki/Cleve_Moler

BLAS at Netlib.org

http://www.netlib.org/blas/

Maple at Wikipedia and Maplesoft.com


http://en.wikipedia.org/wiki/Maple_(software) http://www.maplesoft.com/index1.aspx

MATLAB? Matrix Laboratory


Matrix Arithmetic, Eigen Analysis, ... >> b=floor(10*rand(3)) >> c=a*b c = 32 54 64 >> d=a/b 6 7 2 d = 2.3934 2.0164 -2.1639 77 62 41 80 105 100

b =

1
6 3

5
1 6 1 5 9

3
8 8

>> a=magic(3) a = 8 3 4

0.1475
5.0820

0.1311
1.2951

0.6885
-2.9508
6

Graphics & Visualization


0.35 0.3 0.25 0.2 0.15

20

40

60
0.1 0.05

1
0

80

0.8
-0.05

0.6
-0.1

100

0.4
-0.15 0 0.5 1 1.5 0.2 2 2.5 3 3.5 4

120 20 40 60 80 100 120

0 -0.2 -0.4 -0.6 -0.8 -1

0.5

1.5

2.5

3.5

4.5

Graphical User Interface

fifteen fdatool

Try them for yourself!

xpbombs
8

Toolboxes
Eye Diagram 5 4 3 2
10
-1

10

Equalizer BER Comparison

10

-2

Amplitude

1
BER

0 -1 -2 -3 -4 -0.5

10

-3

10

-4

10

-5

10

-6

Ideal BPSK Linear Equalizer DFE Ideal MLSE Imperfect MLSE 0 2 4 6 8 10 Eb/No (dB) 12 14 16

0 Time

0.5

Magnitude Response (dB) 20

-20

Magnitude (dB)

-40

-60

-80

-100

0.1

0.2

0.3 0.4 0.5 0.6 0.7 Normalized Frequency ( rad/sample)

0.8

0.9

SIMULINK

Model-based design environment

Ref: Help Video and Image Processing Blockset Demos Motion Detection

10

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

11

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

12

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

13

Symbolic Math Usage in Academia

Ref: Webinar Symbolic Computing Tools for Academia

14

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


15

Ref: Webinar Symbolic Computing Tools for Academia

Demo: Mass-Spring-Damp System

Dynamic Equation Initial Conditions

mx(t ) Rx(t ) kx(t ) 0 x(0) 0, x(0) 1

Symbolic Math Solution

Ref: Webinar Symbolic Computing Tools for Academia

mass_spring_damp_system.mn

16

Symbolic Math Toolbox Libraries

Calculus

Linear Algebra

Differentiation Integrals Jacobian Taylor series Limits


Algebraic Equations Differential Equations

Operations Eigenvalues

Special Functions

Solving Equations

Bernoulli, Bessel, Beta, Fresnel sine/cosine integral, Gamma

Transforms

Fourier transform Laplace transform Z-transform Polynomial Expansion Substitution

Variable Precision Arithmetic Plotting


Simplification

2-D 3-D contour, surface, mesh Animations


17

Ref: Webinar Symbolic Computing Tools for Academia

Course Overview

Symbolic Computing using MuPAD


7 Weeks + MidTerm Exam Text: MuPAD Tutorial available in PDF


http://www.mathworks.com/access/helpdesk/help/pdf_doc/symbolic/mupad_tutorial.pdf

Ref: Symbol Math Toolbox 5 User's Guide


http://www.mathworks.com/access/helpdesk/help/pdf_doc/symbolic/symbolic_tb.pdf

Numeric Computing using MATLAB


7 Weeks + Final Exam Text: MATLAB, an Introduction with Applications, 3rd Ed, Amos Gilat, John Wiley, 2008 Ref: MATLAB7, 2009, ,
18

Overview: Symbolic Computation


First Taste of MuPAD (Ch1~4) MuPAD Language (Ch 5~9) Graphics (Ch 10) Applications (Ch 11~13)

19

Overview: Numeric Computation


Basic Computing in MATLAB M-File Script and Excel File Read/Write Handling Arrays and Matrices Plotting Graphs M-File Function Programming 3D Graphics Data Analysis / Interpolation / Optimization GUI Development
20

Lecture Layout

Lecture: 1hr

Study the lecture material in advance using lecture notes and video recording.

On-line quiz

Report Review: 10 min Preview Quiz: 20 min Review: Revisit the core topics covered in the video recording 10 min Q&A Session: 10 min

LAB1: 1hr demo / on-line submission LAB2: 1hr demo / on-line submission
21

How to Get Good Grades


Fall in love with MATLAB. Be adventurous! Try different possibilities! Don't miss on-line quiz / preview quiz / LABs. Use MATLAB for other courses. Ask during the classes. Ask your friends to help you. Come and visit me as often as you can. Do not just copy others' work. Do not miss midterm exam and final exam.
22

Contact

Lecturer

Byoung-Jo CHOI bjc97r@incheon.ac.kr 032-835-8765 / 010-6737-1536 IT BD Room 7-327 Seok-Beom KIM (MSc Student) mms1274@gmail.com 032-835-4680 / 010-9100-5365 IT BD Room 7-330
23

Assistant

Notes

24

You might also like