Running the sections "Experiment 1: exercise reproduction" and "Experiment 2: patient evaluation" of testPSM.m, testGMM.m, and testDMP.m will reproducde the results in the paper. All models must be trained by running the "train models" sections of each file.