Info
この質問は閉じられています。 編集または回答するには再度開いてください。
HELP PLEASE (( matrix))
1 回表示 (過去 30 日間)
古いコメントを表示
how can i find the determinants of a matrix ( 3*3) without inbuild functions (det)
thank u
0 件のコメント
回答 (1 件)
Ameer Hamza
2020 年 10 月 31 日
編集済み: Ameer Hamza
2020 年 10 月 31 日
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.
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!