Page 1 of 1

generating scaled model in Matlab

Posted: Wed Aug 31, 2022 3:59 pm
by sheeba
Hi

Is there a way to generate a scaled model in Matlab directly instead of running an XML file in OpenSim GUI using the scale tool? I could create an XML (scale setup) file in Matlab with a piece of code but could not generate a scaled model with that XML file.

Thanks,
Sheeba

Re: generating scaled model in Matlab

Posted: Thu Sep 01, 2022 8:22 am
by tkuchida
Yes, you can use the OpenSim Tools in Matlab. There are examples on GitHub and elsewhere (e.g., see the "Scripting with Matlab" page in the documentation: https://simtk-confluence.stanford.edu:8 ... ith+Matlab). Script 2 in the following SimTK project calls the Scale Tool from Python (the syntax in Matlab is similar): https://simtk.org/projects/quant_uncertain/.

Re: generating scaled model in Matlab

Posted: Thu Sep 01, 2022 11:27 am
by sheeba
Thank you Prof. Uchida, will try the mentioned methods.

Thanks
Sheeba