Anda di halaman 1dari 10

1.

Selesaikan matrik di bawah ini :


A=
5 7 9
8 9 10
7 9 5
12 6 15

a. Tidak bisa karena matrik ber ordo 4x3

b. >> A.^4
ans =

625 2401 6561


4096 6561 10000
2401 6561 625
20736 1296 50625

c. >> A/pi
ans =

1.5915 2.2282 2.8648


2.5465 2.8648 3.1831
2.2282 2.8648 1.5915
3.8197 1.9099 4.7746

d. >> A ( 4 , 3 )
ans =

15

e. >> A ( 3 , : )
ans =

7 9 5
B=
7
9
5
11

f. Error using
g. >> B.^3
ans =

343
729
125
1331

h. >> B/pi

ans =
2.2282
2.8648
1.5915
3.5014

i. >> B ( 2 , 1 )
ans =

j. >> B( 1 , : )

ans =

7
C=
8 9
12 10
10 7
12 14

k. Error Using
l. >> C.^2
ans =

64 81
144 100
100 49
144 196

m. >> C/pi
ans =

2.5465 2.8648
3.8197 3.1831
3.1831 2.2282
3.8197 4.4563

n. Error Using

o. >> C ( 2 , : )
ans =

12 10

p. Error Using
q. Error Using
r. Error Using
s. Error Using
t. Error Using
u. Error Using
v. Error Using
w. Error Using

2. 4 + 5j * 4 – 6i
a. >> abs (4+5j*4-6i)
ans =

14.5602

b. >> angle (4+5j*4-6i)


ans =

1.2925
c. >> angle (4+5j*4-6i)*180/pi
ans =

74.0546

3. Dik t = batas bawah 3, batas atas 45 dengan skala 3


a. >> t = [3:3:45]
t=

3 6 9 12 15 18 21 24 27 30 33 36 39 42 45

>> length (t)


ans =

15
b. v = sqrt (g*m/cd)*tanh(sqrt(g*cd/m)*t)
v=

Columns 1 through 10

28.1042 49.7295 63.2522 70.6427 74.3869 76.2110 77.0826


77.4954 77.6899 77.7815

Columns 11 through 15

77.8245 77.8447 77.8542 77.8586 77.860

c. Grafik kecepatan terhadap waktu


d. Beri judul, label x, label y dan garis pada grafik
80

plot of v versus t
80
70

70 60

50
60

40
values of v

50
30

40 20
0 5 10 15 20 25 30 35 40 45

30
20
0 5 10 15 20 25 30 35 40 45

Values of t

4. Dik y = cos x dengan 0 < x < 360 dengan interval 15


a. >> x = [0:15:360]
x=

Columns 1 through 16

0 15 30 45 60 75 90 105 120 135 150 165 180 195


210 225

Columns 17 through 25

240 255 270 285 300 315 330 345 360

>> length (x)


ans =

25

>> y = cos (x)


y=

Columns 1 through 10

1.0000 -0.7597 0.1543 0.5253 -0.9524 0.9218 -0.4481


-0.2410 0.8142 -0.9961

Columns 11 through 20

0.6993 -0.0663 -0.5985 0.9756 -0.8839 0.3673 0.3258


-0.8623 0.9844 -0.6333

Columns 21 through 25

-0.0221 0.6669 -0.9912 0.8391 -0.2837

>> length (y)


ans =

25

b. v = sqrt (g*m/cd)*tanh(sqrt(g*cd/m)*t)
v=

Columns 1 through 10

9.7584 -7.4299 1.5130 5.1459 -9.2986 9.0019 -4.3909


-2.3631 7.9592 -9.7206

Columns 11 through 20

6.8420 -0.6508 -5.8598 9.5229 -8.6352 3.6008 3.1941


-8.4261 9.6076 -6.1999

Columns 21 through 25

-0.2168 6.5271 -9.6734 8.2009 -2.7818

c. Grafik kecepatan terhadap waktu

d. Grafik fungsi x terhadap y


e. Beri judul, label x, label y, dan garis pada grafik
Values of x

5. Dik y = tan x, denga 0<x<360 dengan interval 15


a. >> x = [0:15:360]
x=

Columns 1 through 16

0 15 30 45 60 75 90 105 120 135 150 165 180 195


210 225

Columns 17 through 25

240 255 270 285 300 315 330 345 360

>> length (x)


ans =

25

>> y = tan (x)


y=

Columns 1 through 10

0 -0.8560 -6.4053 1.6198 0.3200 -0.4207 -1.9952 4.0278


0.7131 -0.0887

Columns 11 through 20

-1.0223 -15.0414 1.3387 0.2249 -0.5292 -2.5321 2.9021


0.5873 -0.1788 -1.2219

Columns 21 through 25

45.2447 1.1173 0.1336 -0.6483 -3.3801

>> length (y)


ans =

25

b. >> v = sqrt(g*m/cd)*tanh(sqrt(g*cd/m)*t)
v=

Columns 1 through 9

0 -8.3649 -52.0076 15.6730 3.1379 -4.1232 -19.1708 36.4373


6.9770

Columns 10 through 18

-0.8703 -9.9741 -74.4221 13.0094 2.2061 -5.1834 -24.0303 27.2651


5.7505

Columns 19 through 25
-1.7541 -11.8929 77.8608 10.8887 1.3101 -6.3459 -31.2900

c. Grafik kecepatan terhadap waktu


50

40

30

20

10

-10

-20
-80 -60 -40 -20 0 20 40 60 80
0
d. Grafik fungsi x terhadap fungsi y

e. Beri judul, label x, label y dan garis pada grafi

plot of x versus
5
y
0

4
0

3
0
values of y

2
0

1
0

-
10
50
-
0 5 10 15 20 25 30 35 40
2040
0 0 0 0 0 0 0 0

30

20

10

-10

-20
0 50 100 150 200 250 300 350 400
Values of x

Anda mungkin juga menyukai