How to calculate force in Matlab?
Posted: Fri Oct 02, 2020 11:47 am
Hi,
I'm trying to compute muscle forces of the MoBL-ARMS model, using Matlab, but I don't understand how to do this.
I active a muscle, using FD Tool and, inside a for loop, I need to compute force for every muscle activated, supposed that this force is applied in the hand mass center.
I write this fragment of script:
for j = 1:length(muscle_label)
muscle_name = muscle_label(j);
[...] % implentation of FD Tool for the selected muscle
FDinamicsTool.run();
forces = myModel.getForceSet();
muscleSet = myModel.getMuscles();
MUSCLE = muscleSet.get(muscle_name);
f = MUSCLE.computeActuation(myState);
end
Using computeActuation, I find a single value of force, while I need the force in 3 dimensions for every time instants. If I use getFiberForce or getActivationFiberForce or getActuation, the result is the same ( I obtain a single value of force).
Is there a way to obtain these values of muscle Force?
Thanks in advance.
Maria Cristina Panettieri
I'm trying to compute muscle forces of the MoBL-ARMS model, using Matlab, but I don't understand how to do this.
I active a muscle, using FD Tool and, inside a for loop, I need to compute force for every muscle activated, supposed that this force is applied in the hand mass center.
I write this fragment of script:
for j = 1:length(muscle_label)
muscle_name = muscle_label(j);
[...] % implentation of FD Tool for the selected muscle
FDinamicsTool.run();
forces = myModel.getForceSet();
muscleSet = myModel.getMuscles();
MUSCLE = muscleSet.get(muscle_name);
f = MUSCLE.computeActuation(myState);
end
Using computeActuation, I find a single value of force, while I need the force in 3 dimensions for every time instants. If I use getFiberForce or getActivationFiberForce or getActuation, the result is the same ( I obtain a single value of force).
Is there a way to obtain these values of muscle Force?
Thanks in advance.
Maria Cristina Panettieri