You are here: Home / Resources / Musculoskeletal Model for Simulation of Walking / Source code for musculoskeletal model

Source code for musculoskeletal model

If you need to compile the MEX function for your own system, here are the steps.

  1. If you have not already done so, set up the MEX compilation by typing "mex -setup" in Matlab and follow the instructions.
  2. Download the ZIP file with source code.
  3. Extract the three files and place them in one folder.
  4. In Matlab, go to that folder and type: "mex gait2de.c gait2de_al.c".
  5. The MEX function should appear in the folder.