This repository contains (i) experimetal data, (ii) simulation data, and (iii) simulation codes in the format of MATLAB files used in Ikegami et al.'s paper "Hierarchical motor adaptations negotiate failures during force field learning". MATLAB R2018b(consistency is not guarnteed for other versions) needed to be installed to open the data files or run the simulation codes. (i) Experimental data (data unit is m) ・The experimental data of the lateral deviation(LD) and the target error(TE) for all the six conditions of VDCF[exp1], LIPF[exp1], PSPF[exp2], CPVF[exp2], LIPF-NULL[exp3], and LIPF-PEC[exp3] are saved in VDCF.mat, LIPF.mat, PSPF.mat, CPVF.mat, LIPFNULL.mat, and LIPFPEC.mat, respectively. Each file has the baseline sesison(BL) and adaptation session(AD) data of the LD and TE for each pariticipant. ・ The experimental data of the hand trajecotries used to draw Fig 3 are saved in Traj.mat which contains the data for the VDCF, LIPF, PSPF, and CPVF conditions. Each condition has x- and y-axis data for each participant. The x-axis data were sampled at the fifteen y positions: 7.5 (target radius size), 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, and 150 (target position) mm. (ii) Simulation data (data unit is m) ・ The simulated data with Flat-OFC model or Hierarchical-OFC model are saved in the mat.file containing the prefix 'F_OFC' or 'H_OFC'. For example, the simulated VDCF condition data by the Flat-OFC model are saved in F_OFC_VDCF. ・ Likewise, the simulated data with Flat-VS model or Hierarchical-VS model are saved in the mat.file containing the prefix 'F_VS' or 'H_VS'. For example, the simulated VDCF condition data by the Hierarchical-VS model are saved in H_VS_VDCF. (iii) Simulation codes ・ OFC model For the simulation of VDCF-Null, LIPF-Null, CPVF-Null condition data, open the "OFC1" folder and run the "ofc_kalman.m". For the simulation of LIPF-PEC condition data, open the "OFC2" folder and run the "ofc_kalman_PEC.m". ・ VS model For the simulation of all the conditions, open the "VS" folder and run the "main.m".