Professional Documents
Culture Documents
= =
= =
(
(
(
=
(
(
(
=
Komut satr
>> R=[1 1 1;2 1 -1;1 3 2]; % Katsaylar (direnler) matrisi
>> V=[2 6 3]'; % Kar taraf (gerilimler) vektr
>> D1=[V R(:,[2:3])]
D1 =
2 1 1
6 1 -1
3 3 2
>> D2=[R(:,1) V R(:,3)]
D2 =
1 2 1
2 6 -1
1 3 2
>> D3=[R(:,[1 2]) V]
D3 =
1 1 2
2 1 6
1 3 3
MATLAB ile Temel Programlama
2011 Yrd.Do. Dr. Fahri VATANSEVER
>> I=[det(D1);det(D2);det(D3)]/det(R)
I =
2
1
-1
Ters matris yntemiyle zmde ise
(
(
(
(
(
(
=
(
(
(
(
(
(
=
(
(
(
(
(
(
3
6
2
2 3 1
1 1 2
1 1 1
3
6
2
2 3 1
1 1 2
1 1 1
1
3
2
1
3
2
1
I
I
I
I
I
I
eklinde katsaylar matrisinin tersi alnp kar taraf vektr ile arplr.
Komut satr
>> R=[1 1 1;2 1 -1;1 3 2]; % Katsaylar (direnler) matrisi
>> V=[2 6 3]'; % Kar taraf (gerilimler) vektr
>> I=inv(R)*V
I =
2.0000
1.0000
-1.0000