Nearest Defective Matrix

A MATLAB package to approximate the nearest defective matrix. The method is documented in this paper. The main routine is neardefmat.m.