JWBN Hal 22
JWBN Hal 22
5]
>> A/pi
ans =
>> B(2,1)
A=
5
9 10
12
1.5915
2.2282 2.8648
ans =
2.5465
2.8648 3.1831
2.2282
2.8648 1.5915
>> B(:,1)
3.8197
1.9099 1.5915
ans =
9
9
>> A(4,3)
ans =
12
10
10
12
14
>> A(3,:)
11
ans =
7
NO 3
9
>> C .^C
ans =
No 2
>> B=[7;9;5;11]
>> B .^B
1.0e+016 *
B=
ans =
0.0000
0.0000
0.0009
0.0000
0.0000
0.0000
0.0000
0.0039
0.0009
1.1112
0.0000
>> C .^2
2.8531
ans =
>> B .^3
64
ans =
144 100
7
1.0e+011 *
9
5
11
Ditanya no 1
>> A .^A
81
ans =
1.0e+012 *
0.0000
0.0000 0.0004
0.0000
0.0004 0.0100
0.0000
0.0004 0.0000
8.9161
0.0000 0.0000
343
100 49
729
144 196
125
>> C/pi
1331
ans =
>> B/pi
2.5465
2.8648
ans =
3.8197
3.1831
2.2282
3.1831
2.2282
2.8648
3.8197
4.4563
>> A .^4
ans =
625
2401
6561
4096
6561
10000
2401
6561
625
20736
1296
625
1.5915
3.5014
>> C(3,3)
??? Index exceeds matrix
dimensions.
>> inv(C)
??? Error using ==> inv
>> C(:,2)
Matrix must be square.
ans =
9
Jawaban tugas hal 22
10
7
14
NO 4
>> A*B
??? Error using ==> *
Inner matrix dimensions must agree.
>> A*C
??? Error using ==> *
Inner matrix dimensions must agree.
>> B*C
??? Error using ==> *
Inner matrix dimensions must agree.
>> det(A)
??? Error using ==> det
Matrix must be square.
>> Det(A)*C
??? Capitalized internal function
Det; Caps Lock may be on.
>> inv(A)
??? Error using ==> inv
Matrix must be square.
>> inv(B)
??? Error using ==> inv
Matrix must be square.