Common MATLAB functions for manipulating CORTEX files