This repository contains all the Matlab code to process the resulting files from the replication experiment done with the motor learning app. The experiment that it can process is the one with 72 blocks, 36 with one hand, and 36 with the other. The sequence for the left hand was 41324 and for the right, 70897.
It works for the following experiments:
- 5P6U: supervised experiment started with the left hand.
- C6XN: unsupervised experiment started with the left hand.
- src/process_experiment.m: takes the processed data file of an experiment, calculates microscale learning and converts it to Excel and a Matlab struct.
- src/compute_accuracy.m: takes the Matlab struct of all the experiments and updates them to include the accuracy: both the regular one and the one computed in the way Bonstrup did.
- src/stats.m: takes in the Matlab struct for each of the experiments and computes the variables that were used in the paper for the statistical analysis. Also creates violin and microscale learning plots.
- src/early_learning.m: computes how many trials would be considered early learning according to the methods used in both the original Bonstrup paper, and the crowdsourcing paper.
- src/aggregated_microscale.m: plots aggregated microscale learning across groups.
- src/microscale_figures.m: takes the data from all experiments and saves them together, while creating multiple microscale learning figures per group.
- src/plot_subject_data.m: script to plot one subject's data, to debug possible issues.
- src/tap_speed_visualization.m: creates visualization of the tapping speed across the experiment based on the visualization by Bonstrup on their crowdsourcing paper.
addpath("src")
% Change the data path (line 9) to the experiment file we're interested in
process_experiment
% Once done for all different experiments, compute accuracy
compute_accuracy
% Finally, compute stats
stats