You are on page 1of 22

HY200.

/ &
.



MATLAB
.
.
.

HY200 -

yota@inf.uth.gr

HY200 -

yota@inf.uth.gr


Computing solutions to
mathematically expressed problems
Solving differential equations
non-linear equations
optimization problems

200 -

yota@inf.uth.gr


Signal and Image Processing
Matlab image de-blurring

200 -

yota@inf.uth.gr


Graphical tools (CAD)
Design and improve mechanical
parts, instruments & devices

200 -

2012 - 1.6


&



CERN: 1 PetaByte
1,000,000,000,000,000
peta

tera

giga

mega

kilo

100PB
Large Hadron Collider!
200 -

yota@inf.uth.gr


3D

200 -

yota@inf.uth.gr




DB
Functional genomics and proteomics:
-

200 -

yota@inf.uth.gr

Cognitive and Brain Science


The food is good to eat. Please pass the food.


10

200 -

yota@inf.uth.gr

Art, Movies, Music



11

200 -

yota@inf.uth.gr

X-ray, sonar, MRI


robot
12

200 -

yota@inf.uth.gr

E-Commerce
Knowledge management
Data Mining
Markets and banking

13

200 -

yota@inf.uth.gr


=


200

14

200 -

yota@inf.uth.gr

Matlab

15

HY200 -

yota@inf.uth.gr

MATLAB
MATrix LABoratory.
/



Platform-independent programs

MATLAB

16

HY200 -

yota@inf.uth.gr

MATLAB

17

HY200 -

yota@inf.uth.gr

MATLAB
Interactive programming
help
/
/

18

HY200 -

yota@inf.uth.gr

MATLAB Basics
2+2
a=[1 2 3]

x=3*16

b=[10 20 30]
y=5^2+log(pi)+sin(x)

c=a+b

theta=linspace(0,2*pi,100);
x=cos(theta);
y=sin(theta);
plot(x,y)

HY200 -

19

yota@inf.uth.gr

MATLABHelp
Desktop

Editor

Workspace

Directory

Command
history

20

HY200 -

yota@inf.uth.gr

10

(+, -, *, /, ^)

dot (.*, ./, .^)



dot

(
)

Display formats

format short
format long
format short e

21

format
format
format
format

long e
short g
long g
bank

HY200 -

yota@inf.uth.gr


sqrt(x)

nthroot(x,n) n-
exp(x)

(ex)

abs(x)

log(x)

()
( e, ln)

log10(x)


( 10 log)

factorial(x) (x!)

22

HY200 -

yota@inf.uth.gr

11


sin(x)
sind(x)

cos(x)
cosd(x)

tan(x)
tand(x)

cot(x)
cotd(x)

asin(x)
asind(x)

sinh(x)

HY200 -

23

yota@inf.uth.gr

24

round(x)

fix(x)

ceil(x)

floor(x)

rem(x,y)

x/y

sign(x)

1 if x>0, -1 if x<0, 0 if x=0

HY200 -

yota@inf.uth.gr

12

, ,

MATLAB

/

double: , ,

char:

(=)


: variable_name = expression

HY200 -

25

yota@inf.uth.gr

Keywords ( )

pi, i, j, Inf, NaN, clock, date, eps, ans


!!
break case catch
end for function
persistent return

continue else elseif


global if otherwise
switch try while

26

clear

who

whos

HY200 -

yota@inf.uth.gr

13

a = zeros(2);

a = first:incr:last

Matlab

variable_name = expression

My_val = input(Enter an input value);


My_val = input(Enter a character
string,s);

HY200 -

27

yota@inf.uth.gr

Script Files

M-files (
)
MATLAB

command
window scripts

editor (edit filename.m)


(filename)
Scope: current directory search path

28

HY200 -

yota@inf.uth.gr

14

29

HY200 -

yota@inf.uth.gr

T 10-12.. , 10-12..

9-11, 11-1, 1-3 ..

: 10-12 .., 12-2..

30

HY200 -

yota@inf.uth.gr

15

200

: .

: Matlab

: (Matlab).

31

HY200 -

yota@inf.uth.gr

. .
.
: ,
,
.
& : Taylor &
, .
&
.

.
(FFT, Monte Carlo )

32

HY200 -

yota@inf.uth.gr

16

(1/5)
-

2
.

.

.

.

80%
.
33

HY200 -

yota@inf.uth.gr

(2/5)
-


. 8
.
,
10.
,
12.
.
:
20% + 80% .
34

HY200 -

yota@inf.uth.gr

17

(3/5)

200 200+201 (
) .

2 ,
.

35

HY200 -

yota@inf.uth.gr

(4/5)

.
2
.
3 .
,

quizzes.

Max ( , . ) + max( ,
. ) + .
36

HY200 -

yota@inf.uth.gr

18

(5/5)


(
).
:
25% MATLAB + 75%

37

HY200 -

yota@inf.uth.gr


1:
.
.
.
2:
(): .
3:
():
(): .
4:
: Taylor,

5:
.

38

HY200 -

yota@inf.uth.gr

19


6:
:
.
7:
:
.
8:
():
.
9:
.

10:
.

HY200 -

39

yota@inf.uth.gr


()

11:
.
12:

.
13:

.
14:

Matlab

40

HY200 -

yota@inf.uth.gr

20

1 : 9-11..
2 : 11-1..
3 : 1-3..

... ...


http://eclass.uth.gr/eclass/MHXD103/index.php
22/2, 3

41

HY200 -

yota@inf.uth.gr


- C. POZRIKIDIS - EUDOXUS
CODE: 9451

(. , . )
I (. )
(. )

(G. Forthsythe, M. Malcom, C.
Moler)

(. )
(. )
(. ,
. , . )

42

HY200 -

yota@inf.uth.gr

21

MATLAB 6 , Adrian Biran & Moshe


Breiner, , . EUDOXUS CODE: 9505
Introduction to Matlab, Graeme Chandler, Univ. of
Queensland, :
http://www.maths.uq.edu.au/~gac/mlb/contents.html
MATLAB, Clinton Wolfe ( 1999),
. .
( 2000).
http://www.math.uoc.gr/~mav/matlab/start
MATLAB 6, . , , .
FORTRAN 90/95, . , .
.
Engineering And Scientific Computing with SciLab, C. Canale.

43

HY200 -

yota@inf.uth.gr

:
inf-server
http://inf-server.inf.uth.gr/courses/CE200/
eclass
http://eclass.uth.gr/eclass/MHXD103/index.php
E-mail :
inf-server
http://inf-server.inf.uth.gr/mailman/listinfo/ce200
eclass
http://eclass.uth.gr/eclass/MHXD103/index.php
. , 3-12, yota@uth.gr

44

HY200 -

yota@inf.uth.gr

22

You might also like