Plot OpenSim Results with Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Martin Mössner
Posts: 17
Joined: Thu Jan 17, 2019 8:40 am

Plot OpenSim Results with Matlab

Post by Martin Mössner » Fri May 03, 2019 1:02 pm

Hi there, I developed an OpenSim application which does following Analyzes:
BodyKinematics, StaticOptimization, JointReaction and finally plots the results into images.
In the GUI the process works fine :D
In the next step, I wrote Matlab code to do the same tasks. After some work I succeded
except for plotting ;)

Here are my questions
1) The plot tool in the GUI is fine! Is it possible to do the same via Matlab and
where can I find documentation. :P
2) On githup I found python code that uses createPlotterPanel. Unfortunately I was not able to
use this funtion in Matlab. :(
3) Is there a quick solution for loading the *.sto files into Matlab and use Matlab's plotting facilities?
Of course I can use fopen, fscanf, ..., but this would require a lot of Matlab coding :|

Could anyone give me some hints :P

Tags:

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Plot OpenSim Results with Matlab

Post by Dimitar Stanev » Sat May 04, 2019 1:27 am

You might load a .sto file and plot the results using MATLAB utilities.

viewtopicPhpbb.php?f=91&t=9165&p=25196&start=0&view=

User avatar
Martin Mössner
Posts: 17
Joined: Thu Jan 17, 2019 8:40 am

Re: Plot OpenSim Results with Matlab

Post by Martin Mössner » Fri May 10, 2019 7:05 am

The Matlab code of readMotionFile, mentioned in the posting above, works fine :P

POST REPLY