Cofactor Matrix Generator

Generates a matrix of cofactor values for an M-by-N matrix.

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/34980-cofactor-matrix-generator), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Co-factor Matrix Evaluation

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Fixed a sign that generated wrong cofactor for some values.

1.0.0.0