Arrays must be square (ERR=239) The program attempts matrix inversion (MAT INV) on an array that is not square. Redimension the array to be square before performing MAT INV.