MATLAB Finding Determinant of Matrix in MATLAB using Laplace Expansion

  • Thread starter Thread starter sara_87
  • Start date Start date
  • Tags Tags
    Matlab Matrices
AI Thread Summary
To find the determinant of the matrix A using Laplace expansion with respect to the last row in MATLAB, the user needs to manually implement the expansion formula. The Laplace expansion involves calculating the determinant by summing the products of the elements of the last row and their corresponding cofactors. The cofactor for each element is determined by the determinant of the submatrix formed by removing the row and column of that element. The discussion highlights the need for a specific MATLAB script to perform this calculation, rather than simply using the built-in det function, as the user seeks to verify their answer through the Laplace method.
sara_87
Messages
748
Reaction score
0
i have a matrix:
A=[2 1 1 1; 6 2 4 3; 8 -1 -3 4; 10 0 2 5]
i have to find the determinant by doing a laplace expansion with respect to the last row.
how do i do this on matlab.
can someone please tell me what to write on the mfile.
thank you
 
Physics news on Phys.org
To find the determinant, just use det(A)

- Warren
 
yeah i know and i found the answer but i have to check my answer by doing a laplace expansion with respect to the last row.
how do i do that?
;)
 

Similar threads

Back
Top