Here's a function that calculates the determinant of a square matrix in Matlab:
main.m251 chars11 lines
You can call this function by passing in a square matrix as the input:
main.m90 chars5 lines
This will output the determinant of the matrix.
gistlibby LogSnag