Search found 7 matches
- Sun Jul 09, 2017 11:42 pm
- Forum: OpenSim
- Topic: Importing TRC Into Matlab
- Replies: 7
- Views: 2297
Re: Importing TRC Into Matlab
Hi Shayan, You can extract a certain column by first importing the data and, second, by choosing which column headings to extract the data for. filename = 'example.trc'; file=importdata(filename); yValues=file.colheaders(2:end); %takes all column names except time Instead of taking all columns excep...
- Wed Nov 30, 2016 12:13 am
- Forum: OpenSim
- Topic: Importing TRC Into Matlab
- Replies: 7
- Views: 2297
Re: Importing TRC Into Matlab
Hi Aaron,
Ok, it seems as though there is an issue with the 'readtext' function. If you are still experiencing issues can you please attach one of your .trc files and I can try to load it?
Cheers,
Gavin.
Ok, it seems as though there is an issue with the 'readtext' function. If you are still experiencing issues can you please attach one of your .trc files and I can try to load it?
Cheers,
Gavin.
- Wed Nov 23, 2016 5:43 pm
- Forum: OpenSim
- Topic: Importing TRC Into Matlab
- Replies: 7
- Views: 2297
Re: Importing TRC Into Matlab
Hi Aaron, Code exists already to read .trc, .mot, and .sto OpenSim output files in Matlab. See https://simtk.org/frs/?group_id=660 for helpful functions you can download. The function 'load_sto_file' in that package also works for .trc and .mot files. Alternatively, you can use file=importdata(fullf...
- Sun Oct 16, 2016 8:36 pm
- Forum: OpenSim
- Topic: Append coordinate to coordinate set of custom joint
- Replies: 3
- Views: 474
Re: Append coordinate to coordinate set of custom joint
Hi, I have now solved this problem by creating additional coordinates and appending them to the existing coordinate set using 'cloneAndAppend', then using 'set_CoordinateSet' to append the new coordinate set onto the joint, and finally appending the modified joint to the model joint set. Regards, Ga...
- Mon Oct 10, 2016 10:38 pm
- Forum: OpenSim
- Topic: Append coordinate to coordinate set of custom joint
- Replies: 3
- Views: 474
Append coordinate to coordinate set of custom joint
Hi, I am interested in appending coordinates to a custom joint (knee) to include abduction/adduction and int/ext rotation. I know how to do this manually in the model xml file, however, would like to do it programatically using the API in Matlab. Currently, I am able to edit the existing coordinate ...
- Sun Sep 25, 2016 4:35 pm
- Forum: OpenSim
- Topic: Calculation of 3-D joint powers in OpenSim
- Replies: 5
- Views: 892
Re: Calculation of 3-D joint powers in OpenSim
Hi Dimitar and Ton,
Thank you both for your prompt and detailed responses. I will implement your suggestions in OpenSim.
Regards,
Gavin.
Thank you both for your prompt and detailed responses. I will implement your suggestions in OpenSim.
Regards,
Gavin.
- Sun Sep 18, 2016 9:17 pm
- Forum: OpenSim
- Topic: Calculation of 3-D joint powers in OpenSim
- Replies: 5
- Views: 892
Calculation of 3-D joint powers in OpenSim
Hi All, My goal is to determine 3-D joint powers for the ankle, knee, and hip using model 2392 and/or the recently released full body MSK model. After browsing through the forums (and biomch-l) I could not find any information on a conventional method to calculate 3-D lower-limb joint powers in Open...