hello,
how can I load motion file in MATLAB after creating the model in MATLAB environment ? (I have loaded Arm26 model in MATLAB and now I wanna start moving the model)
thank you,
Hamed
OpenSim and Matlab
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: OpenSim and Matlab
Hi Hamed,
The best place to look is in the opensim-core repository examples and to familiarize with the API:
https://github.com/opensim-org/opensim- ... nInModel.m
https://github.com/opensim-org/opensim- ... _Tutorials
https://github.com/opensim-org/opensim- ... ava/Matlab
The best place to look is in the opensim-core repository examples and to familiarize with the API:
https://github.com/opensim-org/opensim- ... nInModel.m
https://github.com/opensim-org/opensim- ... _Tutorials
https://github.com/opensim-org/opensim- ... ava/Matlab
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: OpenSim and Matlab
thanks for the reply,
I checked the links you sent me but that wasn't so helpful.
I wanna know whether I have to write a code for loading a motion or I can load the ".m" file directly in MATLAB.
I'm a bit confused.
I checked the links you sent me but that wasn't so helpful.
I wanna know whether I have to write a code for loading a motion or I can load the ".m" file directly in MATLAB.
I'm a bit confused.
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: OpenSim and Matlab
There are different options:
You can read a .mot, .sto file with the Storage facility:
https://github.com/opensim-org/opensim- ... on.py#L140
or you can use DataTable:
https://simtk.org/api_docs/opensim/api_ ... ca73b9a1aa
Again, the best way to see how to use these are by looking at the example files or the doxygen API.
You can read a .mot, .sto file with the Storage facility:
https://github.com/opensim-org/opensim- ... on.py#L140
or you can use DataTable:
https://simtk.org/api_docs/opensim/api_ ... ca73b9a1aa
Again, the best way to see how to use these are by looking at the example files or the doxygen API.
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: OpenSim and Matlab
I still didn't understand the way I should try. could you give me an example how can do that ?mitkof6 wrote: ↑Tue Aug 18, 2020 12:27 amThere are different options:
You can read a .mot, .sto file with the Storage facility:
https://github.com/opensim-org/opensim- ... on.py#L140
or you can use DataTable:
https://simtk.org/api_docs/opensim/api_ ... ca73b9a1aa
Again, the best way to see how to use these are by looking at the example files or the doxygen API.
thank you,
Hamed
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: OpenSim and Matlab
could anyone help me with this problem please !?
thank you
thank you