Cofactor Matrix Generator

Generates a matrix of cofactor values for an M-by-N matrix.
2.4K Downloads
Updated 15 May 2012

View License

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 (2024). Cofactor Matrix Generator (https://www.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 Linux
Acknowledgements

Inspired: Co-factor Matrix Evaluation

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Fixed a sign that generated wrong cofactor for some values.

1.0.0.0