Вы находитесь на странице: 1из 27

1

Matlab
1

Matlab (MATrix LABoratory)


GUI

, Matlab

Matlab Web Server


Bioinformatics Toolbox
Communications Toolbox
Control System Toolbox
Database Toolbox
Distributed Computing Toolbox
Financial Toolbox
Fuzzy Logic Toolbox
Genetic Algorithm and Direct
Search Toolbox
Image Processing Toolbox
Neural Networks Toolbox
Partial Differential Equation
Toolbox
Signal Processing Toolbox

SimBiology
Spline Toolbox
Statistics Toolbox
Symbolic Toolbox
Virtual Reality Toolbox
Wavelet Toolbox
Simulink
Aerospace Blockset
Communications Blockset
Video and Image Processing
Real-Time Workshop
Matlab Builder for .NET
Matlab Compiler
MS Office

Matlab
:
1. Matlab
2.
3.
4.
5.

Matlab


Matlab
-


Matlab




2D- 3D-





(sin, cos . .)





.
8


API

Matlab

Matlab
(1x1)





10



long (double)
IEEE

10E-308
10E+308

i j (
): 2.4e7+3.005i
11



()


12



: x=5


: y=(2-x)/(x+3)

,
ans ( answer)
ans
: z=ans*3

;, ;
:
13

14



:
+
*
/
^

.

15


<

<=

>

>=

==

~=

,

16


&

0 (false)
1 (true)
,


17



Matlab
(
)
:
>>







clc
18




Command History (
Desktop)



,
. . (.
)

19


(Workspace)


who:

20


(Workspace)


whos:

21


(Workspace)
MATLAB
, ,
.

,

: File \ Save Workspace As
Matlab: save

22

save
save matlab.mat
save filename
filename
save filename x y z x, y,
z filename ( : a*)
save filename x y z -ASCII
x, y, z filename
save('filename, a',b','-ASCII')

( )

Matlab
help < >
F1

23

load

load
matlab.mat
load filename
filename
load filename x y z x, y,
z filename
load -ASCII filename x y z
x, y, z filename
load('filename, a',b','-ASCII')

24

clear

clear
clear all ,
, ,
.
clear x y z x, y
z.
25

(, .),
(Current Directory)

cd <>
Current Directory :
Current Directory

26


diary (
)
diary
diary filename diary(filename)

diary off / diary on ,

diary on/off,

27