MATLAB OpenSim indexing
Posted: Mon Jan 02, 2023 1:17 am
Hello,
OpenSim indexes start from 0 whereas MATLAB's start from 1, however in the examples provided with OpenSim package (like createActuatorsFile.m), the index starts from 0. Kindly let me know how to achieve this. Because whenever I start indexing with 0 in my MATLAB code usign OpenSim libraries I get the following error.
"Array indices must be positive integers or logical values."
Regards,
Shivangi
OpenSim indexes start from 0 whereas MATLAB's start from 1, however in the examples provided with OpenSim package (like createActuatorsFile.m), the index starts from 0. Kindly let me know how to achieve this. Because whenever I start indexing with 0 in my MATLAB code usign OpenSim libraries I get the following error.
"Array indices must be positive integers or logical values."
Regards,
Shivangi