Scaling with Matlab API
Posted: Mon Jan 24, 2022 1:17 am
Hello !
I am trying to scale a model using the API on Matlab but my code doesn't work. I think I don't fully understand how the ScaleTool function is working. I didn't found any resources about how to scale a model with the API on the forum or in code examples.
I am triyng to scale the LFB-model.osim with a setup file Setup-scale_AF.xml.
Here is my code :
import org.opensim.modeling.*;
model = Model('.\LFB_model.osim');
model.initSystem();
ScTool = ScaleTool('.\Setup-scale_AF.xml');
ScTool.createModel(model); %don't work
ScTool.setModel(model); %don't work neither
ScTool.run();
Thank you in advance for any input or help you can provide !
Arthur Favennec
I am trying to scale a model using the API on Matlab but my code doesn't work. I think I don't fully understand how the ScaleTool function is working. I didn't found any resources about how to scale a model with the API on the forum or in code examples.
I am triyng to scale the LFB-model.osim with a setup file Setup-scale_AF.xml.
Here is my code :
import org.opensim.modeling.*;
model = Model('.\LFB_model.osim');
model.initSystem();
ScTool = ScaleTool('.\Setup-scale_AF.xml');
ScTool.createModel(model); %don't work
ScTool.setModel(model); %don't work neither
ScTool.run();
Thank you in advance for any input or help you can provide !
Arthur Favennec