check out PyMat: http://claymore.engineer.gvsu.edu/~steriana/Python/pymat.html I've never used it but I believe it should work for your needs. However, I highly recommend taking a look at SAGE: http://modular.math.washington.edu/sage/ which has an interface to octave. -ph