Hi,
I have written a code in Matlab to scale a model and then run IK and ID. The code worked with OpenSim 3.3 and Matlab R2014 perfectly.
Now I've switched to OpenSim 4.0 and Matlab R2018b and when I run the code I receive the following error during the scaling.
line in the code
ScTool.getModelScaler.processModel(MyState,MyModel)
error
No method 'processModel' with matching signature found for class 'org.opensim.modeling.ModelScaler'.
Thanks in advance
Best regards
Firooz
Scaling in Matlab
- Firooz Salami
- Posts: 29
- Joined: Sat Jun 20, 2015 1:02 am
Re: Scaling in Matlab
The API for many Classes (like the ScaleTool) were changed between 3.3 and 4.0 since it was such a major release. You can view the API documentation for the ModelScaler, here.
In 4.0, there is also a new run() method on ScaleTool, reducing the requirement to process the model in the ModelScaler or MarkerPlacer, separately.
In 4.0, there is also a new run() method on ScaleTool, reducing the requirement to process the model in the ModelScaler or MarkerPlacer, separately.
- Firooz Salami
- Posts: 29
- Joined: Sat Jun 20, 2015 1:02 am
Re: Scaling in Matlab
Thanks for the reply, It is useful.
Bests
Firooz
Bests
Firooz