Here's a function that calculates the determinant of a square matrix in Matlab:
main.m251 chars11 linesYou 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