You are on page 1of 24

matlab

matlab
windows
1!dir !dir& dos
2who whos
3

Ctrl+P

Ctrl+N

Ctrl+B

Ctrl+F

Ctrl+
Ctrl+R

Ctrl+
Ctrl+L

home
Ctrl+A

End
Ctrl+E

Esc
Ctrl+U

Del
Ctrl+D

Backspace
Ctrl+H

Ctrl+K

Ctrl+C

4clc

1
* / \ ^

2
sin( )
Cot( )
sind( )
Cotd( )
asin( )
acot( )
Asind( )
acotd( )
cos( )
exp( )
cosd( )
log( )
acos( )
log10( ) 10
acosd( )
sqrt( )

tan( )
realsqrt( )
tand( )
abs( )
atan( )
angle( )
atand( )
mod(x,y) x/y
sum( )
3 help elfun help specfun
4
pi
3.1415926.
realmin
2^-1022
i

realmax
2eps2^1022
j

Inf

eps
2^-52
NaN

1 linspace(first,last,num)first last num

2[ ]
ones( ) 1 12.
zeros() 0
eye() 1 0
diag()
magic()
rand()
randn()
randperm()

horcat
C=[A,B] cat(1,A,B)
vercat
C=[A;B], cat(2,A,B)
repmat(M,v,h) M v h
blkdiagAB
A B
length

ndims

numel

size
[rows,cols]=size(A)
reshape
reshape(A,2,6), A 26
rot90
90
fliplr

flipud

transpose

ctranspose
A A.
inv

det

trace

norm
norma1normaInf.
normest

chol
cholesky
cholinc
cholesky
lu
LU
luinc
LU
qr

kronAB
A mnB pq mpnq A
B pq
rank

pinv

A^p
A
A.^P
A

1
1AX=B XA\B XA=B X= A/B A mn
mn m<n m m>n
A AX=B XpinvAB

2AX=b, ALU[L,U]=lu(A), X=U\(L\b), LU


3 QR A
QR[Q,R]=chol(A), X=Q\(U\b)
4cholesky
2
DeigA A [V,D]=eig(A),
3AUSUT[U,S]=schur(A). S A
4 Matlab
conv

deconv
abdeconvs
poly

polyeig

Polyfitxyn
xy n
polyder
polyderab ab
[a,b]polyderab a/b
polyint

polyval

polyvalm

residue

roots

ployA

5
griddata

Griddata3

interp1
yi=interp1(x,y,xi,method)Method=nearest/linear/spline/pchip/cubic
Interp2
zi=interp1(x,y,z,xi,yimethod),bilinear
Interp3

interpft
help fft
mkpp

spline

pchip
hermit
6
fminbnd fx1x2optiset, f x1 x2 Optiset
Display+iter/off/final,//fminsearch
fzerofx1X1

1
plot

plot3

fplot
fplotf
loglog
semilogx

semilogy

y
.
v

g
-.
>
b
+
<

m
o
p

c
*
h

w
.
hold on
r
x
grid on
k
s
-
d
--
^
3 subplot331
hold on
=================================================================

1.1

addpath rmpath
demo Matlab type .M
doc version Matlab
help what

lasterr whatsnew Matlab


lookfor which
path Matlab
1.2

clear pack
disp save
length size
load who,whos
1.3

cd edit .M
delete matlabroot Matlab
diary Matlab tempdir
dir tempname (temp)
!
1.4

echo Matlab more
format

1.5

matlabrc quit Matlab
startup Matlab
2
2.1

+ ...
- , ()
* ; ()
.* %
^ !
.^

kron kron .
\ =
/ ==
.\ ~=
./ <
: <=

() >
[] >=
{}
&
. |
. ,(.\) ~
xor
2.2

all is*() .*
(isinf)
any *isa
exist logical
find
3
3.1

builtin Matlab global
eval Matlab nargchk
feval script Matlab
function Matlab
3.2

break if
case switch otherwise
else if return
elseif if switch case
end warning
error while
for
3.3

input menu
keyboard pause
3.4

class isa
double superiorto
inferiorto unit8 8
inline

3.5

dbclear dbstatus
dbcont dbstep
dbdown dbstop
dbmex Mex sbtype .M
dbquit dbup
dbstack
4
4.1

eye rand
linspace randn
logspace zeros
ones 1 :
4.2

ans non 0/0 Inf/Inf
computer Matlab nargin
eps () nargout
flops pi
i realmax
inf realmin
inputname varargin
j varargout
4.3

calender eomday
clock etime
cputime CPU now
date tic
datenum () toc
datestr () weekday
datevoc ()
4.4

cat reshape
diag rot90 90
fliplr tril

flipud
repmat

triu

5

compan invhilb hilbert
gallery magic magic
hadamard hadamard pascal pascal
hankel hankel toeplitz toeplitz
hilb hilbert wilkinson wilkinson
6
6.1

sin/asin / sec/asec /
sinh/asinh / sech/asech /
cos/acos / csc/acsc /
cosh/acosh / csch/acsch /
tan/atan / cot/acot /
tanh/atanh / coth/acoth /
atan2
6.2

exp log10
log sqrt
6.3

abs imag
angle real
conj
6.4

fix round
floor - rem
ceil + sign
6.5

airy airy erfcx
besselh bessel (hankel ) erfinv
bessili bessel expint

besselk bessel gamma gamma


besselj bessel gammainc gamma
bessely bessel gammaln gamma
beta beta gcd
betainc beta lcm
betaln beta log2
elipj Jacobi legendre legendre
ellipke pow2 2
erf rat
erfc rats
================================================================

Aa
abs ASCII
acos
acosh
acot
acoth
acsc
acsch
align
all
angle
ans
any
area
argnames M
asec
asech
asin
asinh
assignin
atan
atan2
atanh
autumn
axes
axis

Bb

bar
bar3
bar3h
barh
base2dec X
bin2dec
blanks
bone
box
break while for
brighten

Cc
capture 3
cart2pol
cart2sph
cat
caxis
cd
cdedit
cdf2rdf
ceil
cell
cell2struct
celldisp
cellplot
char
chi2cdf
chi2inv
chi2pdf
chi2rnd
chol Cholesky
clabel
cla
class
clc
clear
clf
clock
colorcube
colordef

colormap
colspace
close
colperm
comet
comet3
compass
compose
cond
condeig
condest -1
conj
contour
contourf
contour3
contourslice
conv
cool
copper
cos
cosh
cot
coth
cplxpair
csc
csch
cumsum
cumtrapz
cylinder

Dd
dblquad
deal
deblank
dec2base X
dec2bin
dec2hex
deconv
delaunay Delaunay
del2 Laplacian
demo Matlab
det

diag
diary Matlab
diff
digits
dir
disp
display
dlinmod
dmperm Dulmage-Mendelsohn
dos DOS
double
drawnow Matlab
dsolve

Ee
echo M
edit M
eig
eigs
end FOR
eps
error
errortrap
erf
erfc
erfcx
erfinv
errorbar
etreeplot
eval
evalin
exist
exit Matlab
exp
expand
expint
expm
expm1 Pade
expm2 Taylor
expm3
eye
ezcontour

ezcontourf
ezgraph3
ezmesh
ezmeshc
ezplot
ezplot3
ezpolar
ezsurf
ezsurfc

Ff
factor
feather
feedback
feval
fft Fourier
fft2 Fourier
fftn Fourier
fftshift
fieldnames
figure
fill3
find
findobj
findstr
findsym
finverse
fix
flag
fliplr
flipud
flipdim
floor
flops
flow Matlab
fmin
fminbnd
fmins
fminunc
fminsearch
fnder

fnint
fnval
fnplt
fopen
for for
format
fourier Fourier
fplot
fprintf
fread
fsolve
full
funm
funtool
fzero

Gg
gamma
gammainc
gammaln
gca
gcbo ""
gcf
gco
geomean
get
getfield
getframe
ginput
global
gplot
gradient
gray
grid
griddata
gtext
guide

Hh
harmmean

help
helpwin
helpdesk
hex2dec
hex2num
hidden
hilb Hilbert
hist
histc
histfit
hold
horner
hot
hsv

Ii
if-else-elseif
ifft Fourier
ifft2 Fourier
ifftn Fourier
ifftshift
ifourier Fourier
i, j ""
ilaplace Laplace
imag
image
imagesc
imfinfo
imread
imwrite
imwrite
ind2sub
inf
info MathWorks
inline
inmem
input
inputname
int
int2str
interp1
interp2

interp3
interpn N
interpft FFT
intro Matlab
inv
invhilb Hilbert
ipermute
isa
ischar
isequal
isempty
isfinite
isfield
isglobal
ishandle
ishold
isieee IEEE
isinf
isletter
islogical
ismember
isnan
isnumeric
isobject
isprime
isreal
isspace
issparse
isstruct
isstudent Matlab
iztrans Z

Jj,Kk
jacobian Jacobian
jet
jordan Jordan
keyboard
kron Kronecker

Ll

laplace Laplace
lasterr
lastwarn
leastsq
legend
lighting
line
lines plot
linmod
linmod2
linspace
ln
load MAT
log
log10
log2 2
loglog
logm
logspace
lookfor M
lower
lsqnonlin
lu LU

Mm
mad
magic
maple &nb, sp; Maple
mat2str
material
max
mbuild EXE
mcc MEX EXE
mean
median
menuedit
mesh
meshz
meshgrid ""
methods
mex MEX

mfunlis mfun MAPLE


mhelp Maple
min
mkdir
mkpp
mod
more
movie
moviein
mtaylor Taylor

Nn
ndims
NaN
nargchk
nargin
nargout
ndgrid
newplot
nextpow2 2
nnz
nonzeros
norm
normcdf
normest 2
norminv
normpdf
normrnd
notebook Matlab Word
null
num2str
numden
nzmax

Oo
ode1 Stiff
ode15s Stiff
ode23t Stiff
ode23tb Stiff
ode45 Stiff

odefile ODE
odeget ODE
odephas2 ODE
odephas3 ODE
odeplot ODE
odeprint Matlab
odeset ODE
ones 1
optimset
orient
orth

Pp
pack Matlab
pagedlg
patch
path Matlab
pathtool
pause
pcode P
pcolor
peaks Matlab
permute
pi
pie
pie3
pink
pinv
plot
plot3
plotmatrix
plotyy
poissinv
poissrnd
pol2cart
polar
poly
poly2str
poly2sym
polyder
polyfit
polyval

polyvalm
pow2 2
ppval
pretty
print SIMULINK
printsys
prism
procread MAPLE
profile
propedit
pwd

Qq
quad
quad8 (QUADL)
quit Matlab
quiver
quiver3

Rr
rand
randn
randperm
range
rank
rats
rcond
real
reallog
realpow
realsqrt
realmax
realmin
rectangle ""
rem
repmat
reshape
residue
return
ribbon

rmfield
roots
rose
rot90 90
rotate
rotate3d
round
rref
rsf2csf
rsums Riemann
Ss
save
scatter
scatter3
sec
sech
semilogx X
semilogy Y
series
set
setfield
setstr ASCII
sign
signum
sim SIMULINK
simget SIMULINK
simple
simplify
simset SIMULINK
simulink SIMULINK
sin
sinh
size
slice
solve
spalloc
sparse
spconvert
spdiags
spfun
sph2cart
sphere

spinmap
spline
spones 1
sprandsym
sprank
spring
sprintf
spy
sqrt
sqrtm
squeeze 1 ""
sscanf
stairs
std
stem
step
str2double
str2mat
str2num
strcat
strcmp
strjust
strmatch
strncmp
strrep
strtok
struct
struct2cell
strvcat
sub2ind
subexpr
subplot
subs
subspace
sum
summer
superiorto
surf
surface
surfc
surfl
surfnorm
svd
svds

switch-case-otherwise
sym2poly
symmmd
symrcm Cuthill-McKee
syms

Tt
tan
tanh
taylortool Taylor
text
tf
tic
title
toc
trapz
treelayout
treeplot
tril
trim
trimesh
trisurf triu try-catch Try-catch type M

Uu
uicontextmenu
uicontrol
uimenu
unmkpp
unwrap
upper

Vv
var
varargin
varargout
vectorize
ver
view
voronoi Voronoi
vpa

Ww
warning
what
whatsnew Matlab Readme
which
while While
white
whitebg
who
whos
winter
workspace

Xx,Yy,Zz
xlabel X
xor
yesinput
ylabel Y
zeros
zlabel Z
zoom
ztrans Z

You might also like