FreeMat compatibility