Page 1 of 1

MomentArmSolver

Posted: Mon Dec 17, 2012 4:43 pm
by gilserrancoli
Hello,

I need to calculate the muscle moment arms from a group of captures. So far, I have used the MuscleAnalyse, running it from Matlab.

Also I used the API, with the ComputeMomentArm(). But I have read in a previous post that the MomentArmSolver() could calculate the moment arms from all muscles at the same time. I was wondering how to call this function in Matlab, but I couldn't find out. Could anyone tell me how to call it from Matlab? Is this faster than the MuscleAnalyse?

Thank you very much,

Gil

Re: MomentArmSolver

Posted: Tue Dec 18, 2012 11:10 am
by aymanh
Hi Gil,

The MuscleAnalysis is handy but is a bit overkill if all you want is to compute moment arms (as it computes many more quantities that may not be of interest to you). The method "computeMomentArm" does exactly what you want by creating a MomentArmSolver internally to compute the moment arm with very low overhead, so I'd recommend you continue using it. MomentArmSolver is an internal class that's not exposed in the API and it does not compute moment arms for all muscles at the same time as far as I can tell.

Best regards,
-Ayman

Re: MomentArmSolver

Posted: Tue Dec 18, 2012 2:14 pm
by gilserrancoli
Thanks Ayman,

I was wondering if computeMomentArms() or other method could calculate the moment arms for all coordinates at the same time. So far, I am doing an iteration through all frames, all coordinates and all muscles to calculate the moment arms and it takes a long time.
It seems that MuscleAnalyse is calculating the moment arms for all coordinates at each iteration, can computeMomentArms() do the same?

Thank you again,

Gil