Sie sind auf Seite 1von 3

Matlab

sin(pi/3)
asin(0.5)
cos(pi/4)
acos(0.5)
tan(pi/6)
atan(3)
x=1:0.1:3;
y=exp(x)
x=1:0.1:3;
y=log(x)
sqrt(3)
x=3:0.1:5;
y=sqrt(x)
y=feval(exp,3)

sin(60)
sin-1(0.5)
cos(45)
cos-1(0.5)
tan(30)
tan-1(3)
y=ex x=1 3
y 0.1
y=ln(x) x=1 3
y
0.1
3
y = x x=3 5
y
0.1
y=exp(x) x=3

Matlab
a=[1 -3 -4];
roots(a)
b=[1 2 3];
poly(b)

-4
x 3x 4 = 0
1

x=1, x=2, 1 -6 11 -6
x=3 x 3 6x 2 +11x 6 = 0

c=[1 6 9];
x = -3 0
polyval(c,-3)
x 2 + 6x + 9
s=[1 2 3];t=[4 5 6]; (x2+2x+3)
4 13 28 27 18
conv(s,t)
(4x2+5x+6)
4x 4 +13x 3 + 28x 2 + 2x +18

a=[1 2 3 4];
(x3+2x2+3x+4) q=1 -1 6= x2-x+6
b=[1 3];
(x+3)
r=0 0 0 0 -14=-14
[q,r]=deconv(a,b)
2

Matlab
x=-pi:pi/10:pi;
y=sin(x)
plot(x,y)

y=sin(x)

x /10
1

subplot(221);
plot(x,y)
xlabel(x)
ylabel(y=sin(x))
zlabel()

22

1
x
y
z
3D
(-2,-0.8)
(1,0.8)

text(-2,0.8,Minimum);
text(1, 0.8,
Maximum);
title(The graph of
y=sin(x))
grid

fplot x*exp(x),[0
1]

x=-2:0.1:2;y=x;
z=1+x2+y2
z=1+x.^2+y.^2;

plot3(x,y,z)

t = 0:pi/50:10*pi;
y=cos(t),
plot3(sin(t),cos(t),t) x=sin(t),
z=t 3-D

a=-2:0.2:2;b=a;
a,b
[x,y]=meshgrid(a,b); x,y
z = x .* exp(-x.^2 - z = xe(x2 y 2 )
y.^2);
3D
mesh(x,y,z)
meshgrid
z

surf(x,y,z)
meshgrid
z


1. (1)plot (2)fplot feval x
f ( x ) = x 1, 1 x 6 f(3.24)=
f ( x ) = ln( x 2 + 3x + 5), -1 x 3 f(2)=
f (x) =

sin( x )
,
1+ cos( x )

f ( x ) = xe3x

- / 2 x / 2 f(3/10)=

1 x 3

f(2.2)=

2.

x 3 + 3x 2 5x + 7 = 0
5x 4 7x 3 + 2x 2 3x 1 = 0

3.
( 22x 3 13x 2 15x + 71) (17x 2 35x + 28)
( 55x 4 17x 3 + 26x 2 33x 141) ( 2x + 7)

4.
(1)plot3 (2)mesh (3)surf
z = x 3 y 5 ; 2 x 2, 0 y 5
z = xe2y ; 0 x 2, 0 y 3
z = cos( x )+ cos( y )+ cos( x + y );

0 x 2 , 0 y 2

5. 5 -7.93, -2.75, 8.33, 11.57, 17.34


[-10 20]
6. (1)
f ( x ) = 2x 2 5x +1
g ( x ) = e3x
h( x ) =

x
1+ x 2

(2) subplot 3

Das könnte Ihnen auch gefallen