>> F.*G
ans =
2.0000 -6.0000 36.0000
2.0000 15.0000 0
14.0000 2.5000 32.0000
F va G matritsalarni qo’shish va ayirish:
>> F+G
ans =
3.0000 1.0000 15.0000
3.0000 8.0000 -9.0000
9.0000 5.5000 12.0000
>> F-G
ans =
-1.0000 -5.0000 -9.0000
1.0000 2.0000 -9.0000
-5.0000 4.5000 4.0000
Kiritilgan o’zgaruvchilar haqida ma’lumot olish:
>> whos
Name Size Bytes Class
A 2x3 48 double array
B 4x4 128 double array
C 3x4 96 double array
F 3x3 72 double array
G 3x3 72 double array
H 4x4 128 double array
a 3x1 24 double array
ans 3x3 72 double array
b 1x6 48 double array
Grand total is 86 elements using 688 bytes
MATLAB da kvadrat matritsalarning determinantini hisoblash uchun det buyrug’idan foydalaniladi. Masalan:
>> A2=[5 3; 2 8]
A2 =
5 3
2 8
>> det(A2)
ans =
34
K=[2 3 6 ; 1 8 4; 3 6 7]
K =
2 3 6
1 8 4
3 6 7
>> det(K)
ans =
-29
>> K4=[2 3 6 14; 1 8 3 7; 9 6 7 5; 1 2 8 9]
K4 =
2 3 6 14
1 8 3 7
9 6 7 5
1 2 8 9
>> det(K4)
ans =
3250
MATLAB da kvadrat matritsalarning determinantini hisoblash uchun det buyrug’idan foydalaniladi. Masalan:
>> A2=[5 3; 2 8]
A2 =
5 3
2 8
>> inv(A2)
ans =
0.2353 -0.0882
-0.0588 0.1471
>> K4=[2 3 6 14; 1 8 3 7; 9 6 7 5; 1 2 8 9]
K4 =
2 3 6 14
1 8 3 7
9 6 7 5
1 2 8 9
MATLAB da kvadrat matritsalarning teskarisini hisoblash uchun inv buyrug’idan foydalaniladi. Masalan:
>> inv(K4)
ans =
0.0892 -0.0865 0.1160 -0.1360
-0.0769 0.1538 0 0
-0.1477 -0.0086 0.0080 0.2320
0.1385 -0.0169 -0.0200 -0.0800
Bundan tashqari, matritsalarni transponerlash, rangi va normasini topish mumkin.
TAJRIBA MASHG’ULOT TOPSHIRIQLARI:
Quyidagi massivlarni Matlab dasturida hisoblash dasturi tuzilsin.
Do'stlaringiz bilan baham: |