add MCR matlab functions