Professional Documents
Culture Documents
2010-04-13 00:29 | (:
)
MATLAB
abs(x)
imag(z) z
conj(z) z
round(x)
fix(x)
floor(x)
ceil(x)
rat(x)
x
rats(x)
x
gcd(x,y) x y
lcm(x,y) x y
exp(x)
pow2(x)2
log(x) e
log2(x) 2
log10(x) 10
MATLAB
sin(x)
cos(x)
tan(x)
asin(x)
acos(x)
atan(x)
atan2(x,y)
sinh(x)
cosh(x)
tanh(x)
asinh(x)
acosh(x)
atanh(x)
min(x): x
max(x): x
mean(x): x
median(x): x
std(x): x
diff(x): x
sort(x): x
Sorting
length(x): x
norm(x): x Euclidean
sum(x): x
prod(x): x
cumsum(x): x
cumprod(x): x
dot(x, y): x y
cross(x, y): x y
MATLAB
i j
eps
Floating-point
inf 1/0
nan NaN
Not a number 0/0
pi
p= 3.1415926...
realmax
realmin
nargin:
nargout:
MATLAB
plot: x y
Linear scale
loglog: x y
Logarithmic scale
semilogx: x y
semilogy: x y
plot
y .
k o
w x x
b + +
g * *
r -
c :
m -.
--
xlabel('Input Value'); % x
ylabel('Function Value'); % y
title('Two Trigonometric Functions'); %
legend('y = sin(x)','y = cos(x)'); %
grid on; %
bar
errorbar
fplot
polar
hist
rose
stairs
stem
fill
feather
compass
quiver
ans
computer
eps
Inf
inputname
NaN
nargin
nargout
pi
nargoutchk
realmax
realmin
varargin
varargout
+ -
*
.*
^ .^
\ /
./
kron Kronecker
: ()
[] .
.. ...
, ;
% !
' =
== <>
& |
~ xor
2
abs
acos,acodh
acot,acoth
acsc,acsch
angle
asec,asech
secant
asin,asinh
atan,atanh
tangent
atan2
ceil
complex
conj
cos,cosh
csc,csch
cot,coth
exp
fix 0
floor
gcd
imag
lcm
log
log2 2
log10
mod
nchoosek
real
rem
round
sec,sech
sign
sin,sinh
sqrt
tan,tanh
3
blkding
eye
linespace
logspace
numel
ones 1
rand
randn
zeros 0 colon)
cat
diag
fliplr
flipud
repmat
reshape
roy90
90
tril
triu
dot
cross
ismember
intersect
setxor
setdiff
union
cumprod
cumsum
cumtrapz
factor
inpolygon
max
mean
mediam
min
perms
polyarea
primes
prod
rectint
sort
sortrows
std
sum
trapz
var
del2
diff
gradient
cov
corrcoef
conv2
conv
filter2
cplxpair
fft
fft2
fftshift FFT DC
ifft
ifft2
ifftn
ifftshift FFT
nextpow2 2
unwrap
conv
roots
poly
polyder
polyeig
polyfit
polyint
polyval
polyvalm
residue
interp1
interp2
interp3
interpft FFT
interpn
meshgrid 3 x y
ndgrid
pchip 3 Hermite
ppval
spline 3
bar
barh
hist
histc
hold
loglog x,y
pie
plot
polar
semilogy y
semilogx x
subplot
bar3 3D
bar3h 3D
comet3 3D
cylinder
fill3 3D
plot3 3
quiver3 3D
slice
sphere
stem3
waterfall
trisurf
clabel
datetick
grid
gtext
2D
legend
plotyy
Y
title
xlabel X
ylabel Y
zlabel Z
contour
contourc
contourf
hidden
meshc /
mesh
3D
peaks
surf 3D
surface
surfc
surfl 3D
trimesh