RPM for Matlab