Page 1 of 1

Scaling in Matlab

Posted: Tue Nov 26, 2019 1:56 am
by firoozs
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

Re: Scaling in Matlab

Posted: Tue Nov 26, 2019 3:35 am
by jimmy
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.

Re: Scaling in Matlab

Posted: Tue Nov 26, 2019 4:19 am
by firoozs
Thanks for the reply, It is useful.

Bests
Firooz