Using ScaleTool in Matlab
Posted: Mon Jul 06, 2020 8:05 am
Hello,
I am working on running a simulation using the Matlab API. I have created a model and it is initialized. I am then trying to use the ScaleTool command to scale the generic model to a subject specific model.
This does not seem to save the scaled model, though the command line is showing that all of the scale factors have been computed.
How do you output the scaled model using Matlab?
Is there an example that shows how the scaling tool works through the API? Also are there any resources that show how you could set the scale tool parameters from Matlab, as opposed to loading a pre-made xml file (like commands to make the measurement set, set the mass, and direct to the static TRC file)?
Any tips or documentation would be greatly appreciated.
Thanks,
EAD
I am working on running a simulation using the Matlab API. I have created a model and it is initialized. I am then trying to use the ScaleTool command to scale the generic model to a subject specific model.
Code: Select all
scaler = ScaleTool('scaleMeasuermentSet_v11.xml'); %scale set up xml file
scaled = scaler.run();
model.initSystem();
modelPath = fullfile(cd, 'OttobockInMatlab_v05_scaled.osim');
model.print(modelPath);
How do you output the scaled model using Matlab?
Is there an example that shows how the scaling tool works through the API? Also are there any resources that show how you could set the scale tool parameters from Matlab, as opposed to loading a pre-made xml file (like commands to make the measurement set, set the mass, and direct to the static TRC file)?
Any tips or documentation would be greatly appreciated.
Thanks,
EAD