Cofactor Matrix Generator
Version 1.1.0.0 (1.47 KB) by
Angelica Ochoa
Generates a matrix of cofactor values for an M-by-N matrix.
COF=COF(A) generates matrix of cofactor values for an M-by-N matrix
A : an M-by-N matrix
Example: Find the cofactor matrix for A.
A = 1 3 1
1 1 2
2 3 4
>>cof=cof(A)
cof =
-2 0 1
-9 2 3
5 -1 -2
Cite As
Angelica Ochoa (2026). Cofactor Matrix Generator (https://nl.mathworks.com/matlabcentral/fileexchange/34980-cofactor-matrix-generator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Linear Algebra in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Co-factor Matrix Evaluation
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
