Determinant of Matrices using the Leibniz formula recursively
This in-house function is able to evaluate the determinant of any symbolic square matrix reducing the computational cost and fastening the process when compared to the MATLAB built-in det(A) function.
The function uses the Leibniz formula for determinants recursively in order to calculate the determinant as the sum of the determinants of 2x2 matrices.
I have tested it with a full 10x10 symbolic matrix and it worked perfectly whereas using det(A) the computer ran out of memory and stopped the calculation.
Cite As
daniele (2025). Determinant of Matrices using the Leibniz formula recursively (https://www.mathworks.com/matlabcentral/fileexchange/47306-determinant-of-matrices-using-the-leibniz-formula-recursively), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.