computeFiberEquilibrium is undenfined
Posted: Thu May 14, 2020 12:34 pm
Dear users / admin,
I am trying to use Matlab and the model of the Scapulothoracic Joint to look at tendon strain for different positions of the arm and how tendon strain is influenced by the velocity of the arm.
I tried to use computeFiberEquilibrium to make sure the velocity of the muscle was taken into account when the equilibrium was computed, but this returned the error that it was not defined, see below for the code and error message.
error:
Undefined function or variable 'computeFiberEquilibrium'.
Error in surfaceplot (line 63)
teresminor.computeFiberEquilibrium(state,true);
I checked that all muscles I want to use are Millard2012EquilibriumMuscles, which they are. I tried to use safeDownCast to see if that would help but it also resulted in an error:
>> teresminor = Millard2012EquilibriumMuscle.safeDownCast(teresminor)
Undefined variable "Millard2012EquilibriumMuscle" or class
"Millard2012EquilibriumMuscle.safeDownCast".
Any comments on why this is happening and how to resolve the issue will be much appreciated!
Kind regards,
Tom
I am trying to use Matlab and the model of the Scapulothoracic Joint to look at tendon strain for different positions of the arm and how tendon strain is influenced by the velocity of the arm.
I tried to use computeFiberEquilibrium to make sure the velocity of the muscle was taken into account when the equilibrium was computed, but this returned the error that it was not defined, see below for the code and error message.
Code: Select all
for h = 1:3
for i = 1:length(theta)
for j = 1:length(phi)
model.realizeVelocity(state);
PlaneElev.setValue(state,theta(i));
ShoulderElev.setValue(state,phi(j));
PlaneElev.setSpeedValue(state, ((h-2)*3));
ShoulderElev.setSpeedValue(state, ((h-2)*10));
teresminor.setActivation(state, ((h-1)*0.5));
model.realizeVelocity(state);
teresminor.computeFiberEquilibrium(state,true);
model.equilibrateMuscles(state);
Undefined function or variable 'computeFiberEquilibrium'.
Error in surfaceplot (line 63)
teresminor.computeFiberEquilibrium(state,true);
I checked that all muscles I want to use are Millard2012EquilibriumMuscles, which they are. I tried to use safeDownCast to see if that would help but it also resulted in an error:
>> teresminor = Millard2012EquilibriumMuscle.safeDownCast(teresminor)
Undefined variable "Millard2012EquilibriumMuscle" or class
"Millard2012EquilibriumMuscle.safeDownCast".
Any comments on why this is happening and how to resolve the issue will be much appreciated!
Kind regards,
Tom