How to find the determinant of a matrix in Matlab and Octave
To calculate the determinant of a square matrix in Matlab and Octave, use the function det()
The parameter x is a square matrix.
The function returns the determinant of the matrix as output.
Define a 3x3 square matrix with three rows and three columns.
>> M = [ 1 4 3 ; 2 9 5 ; 4 7 8 ]
1 4 3
2 9 5
4 7 8
Find the determinant of the matrix using the function det()
ans = -13.000
The determinant of the matrix is -13
Report us an error or send a suggestion to improve this page