Added MATIN utilities for Matlab