Scaling in Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Firooz Salami
Posts: 29
Joined: Sat Jun 20, 2015 1:02 am

Scaling in Matlab

Post by Firooz Salami » Tue Nov 26, 2019 1:56 am

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

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Scaling in Matlab

Post by jimmy d » Tue Nov 26, 2019 3:35 am

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.

User avatar
Firooz Salami
Posts: 29
Joined: Sat Jun 20, 2015 1:02 am

Re: Scaling in Matlab

Post by Firooz Salami » Tue Nov 26, 2019 4:19 am

Thanks for the reply, It is useful.

Bests
Firooz

POST REPLY