diff --git a/ShoulderCase/@Muscle/getForceResultant.m b/ShoulderCase/@Muscle/getForceResultant.m index e3e76ce..41f8a84 100644 --- a/ShoulderCase/@Muscle/getForceResultant.m +++ b/ShoulderCase/@Muscle/getForceResultant.m @@ -1,8 +1,8 @@ function output = getForceResultant(obj) applicationPoint = mean(obj.forceApplicationPoint, 1); forceResultant = Vector(applicationPoint, applicationPoint); - for i = 1:size(obj.subdivisions, 3) + for i = 1:size(obj.forceVector, 3) forceResultant = forceResultant + obj.forceVector(i); end output = forceResultant; end \ No newline at end of file