필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

HELP PLEASE (( matrix))

조회 수: 1 (최근 30일)
Melika Eft
Melika Eft 2020년 10월 31일
마감: MATLAB Answer Bot 2021년 8월 20일
how can i find the determinants of a matrix ( 3*3) without inbuild functions (det)
thank u

답변 (1개)

Ameer Hamza
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.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by