Code: Select all
outputPaths100 = StdVectorString();
outputPaths100.add('.*fiber_velocity')
FiberVelocity100 = study.analyze(prevSolution_100p, outputPaths100);
Thanks,
Russell
Code: Select all
outputPaths100 = StdVectorString();
outputPaths100.add('.*fiber_velocity')
FiberVelocity100 = study.analyze(prevSolution_100p, outputPaths100);
Code: Select all
outputPaths = StdVectorString();
outputPaths.add('.*fiber_velocity');
outputPaths.add('.*fiber_length');
outputTable = study.analyze(gaitTrackingSolution, outputPaths);
opensimMoco.writeTableToFile(outputTable,'MusOut.sto')
temp5 = importdata('MusOut.sto');
MusOut = temp5.data;
MusOutHeaders = temp5.colheaders;
j = 1;
for i = 1:length(MusOutHeaders)
currentVarName = string(MusOutHeaders(i));
if endsWith(currentVarName,'|fiber_velocity')
ivec(j) = i;
j = j + 1;
end
end
MusFiberVelocities = MusOut(:,ivec);
j = 1;
for i = 1:length(MusOutHeaders)
currentVarName = string(MusOutHeaders(i));
if endsWith(currentVarName,'|fiber_length')
ivec(j) = i;
j = j + 1;
end
end
MusFiberLengths = MusOut(:,ivec);
Code: Select all
DeGrooteFregly2016Muscle::computeForce, muscle semimem_l force < 0 at time = 0.113333
DeGrooteFregly2016Muscle::computeForce, muscle semimem_l force < 0 at time = 0.116667
DeGrooteFregly2016Muscle::computeForce, muscle bflh_r force < 0 at time = 0.593333
DeGrooteFregly2016Muscle::computeForce, muscle semimem_r force < 0 at time = 0.613333
DeGrooteFregly2016Muscle::computeForce, muscle semimem_r force < 0 at time = 0.616667