Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

HELP PLEASE (( matrix))

1 Ansicht (letzte 30 Tage)
Melika Eft
Melika Eft am 31 Okt. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
how can i find the determinants of a matrix ( 3*3) without inbuild functions (det)
thank u

Antworten (1)

Ameer Hamza
Ameer Hamza am 31 Okt. 2020
Bearbeitet: Ameer Hamza am 31 Okt. 2020
You can just use the formula for determinant
A = rand(3);
d = A(1,1)*(A(2,2)*A(3,3)-A(3,2)*A(2,3)) ...
-A(1,2)*(A(2,1)*A(3,3)-A(3,1)*A(2,3)) ...
+A(1,3)*(A(2,1)*A(3,2)-A(3,1)*A(2,2));
Check if it is correct
>> abs(d-det(A))
ans =
3.4694e-18
A very tiny difference is caused by numerical error.

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by