The matlab code is located in CTRM in:
the folder (and this repository) also contains a startmachine.m that will be the reference one used by operation.
it is assumed that the structure of the folders is as below and the bold folders exist and contain the corresponding repository:
CLASSES FOR COMMISSIONING (/operation/machine/BeamDynamics/matlab)
class for first turns correction
Class for detection of polarity issues in quadrupoles.
Class for detection of polarity issues in steerers.