summaryrefslogtreecommitdiff
path: root/maxLoad.m
diff options
context:
space:
mode:
Diffstat (limited to 'maxLoad.m')
-rwxr-xr-xmaxLoad.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/maxLoad.m b/maxLoad.m
index faf0366..2ff279c 100755
--- a/maxLoad.m
+++ b/maxLoad.m
@@ -1,8 +1,11 @@
-function [ m ] = maxLoad(T, L, D, idx)
+function [ m ] = maxLoad(T, L, D, idx, weak)
L1 = abs(L(L ~= 0));
T1 = abs(T(idx));
ml = D(idx);
B = breaking(ml);
+ if weak
+ B = B - 1.0837;
+ end
ratio = T1/B;
m = L1 / ratio;
end