Mobility research Matlab code for simulating CMDP