Saving Error During Muscle Tendon Personalization Due to Muscle Name
Posted: Wed Mar 27, 2024 8:40 am
Posting an error associated with muscle naming conventions due to MatLab variable name rules.
This error occurs during MTP when the optimized parameters are being saved. From my limited understanding of MatLab it appears that the names of a field within a structure are not allowed to start with a number, so any muscle name that begins with a number that is being optimized would throw this 'Invalid field name:'. Solved it by simply changing muscle names such as 1stDI to FirstDI within the Osim file, so that all names where MatLab compliant. Of note MTP does run with muscles names that start with numbers, it just won't save them.
This error occurs during MTP when the optimized parameters are being saved. From my limited understanding of MatLab it appears that the names of a field within a structure are not allowed to start with a number, so any muscle name that begins with a number that is being optimized would throw this 'Invalid field name:'. Solved it by simply changing muscle names such as 1stDI to FirstDI within the Osim file, so that all names where MatLab compliant. Of note MTP does run with muscles names that start with numbers, it just won't save them.