Be the first to rate this file! 16 Downloads (last 30 days) File Size: 1.47 KB File ID: #34980

Cofactor Matrix Generator

by Angelica Ochoa

 

08 Feb 2012 (Updated 15 May 2012)

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

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File  
Everyone's Tags
adjoint, cofactor(2), inverse, linear algebra, mathematics, matrix, statistics
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
15 May 2012

Fixed a sign that generated wrong cofactor for some values.

Contact us