Library of MATLAB functions for CIVM