summaryrefslogtreecommitdiff
path: root/maxLoad.m
diff options
context:
space:
mode:
authorMichael Abed <michaelabed@gmail.com>2012-04-09 22:28:34 -0400
committerMichael Abed <michaelabed@gmail.com>2012-04-09 22:28:34 -0400
commit2b61d521c51300575c981a48d256c87cbcf6e478 (patch)
treee7eb8c6fe6e6b206bcb1285b26c63f87415a7ef8 /maxLoad.m
parentf950899cf0133d864abe4fece0fac469e28e8023 (diff)
downloadek301-prelim-2b61d521c51300575c981a48d256c87cbcf6e478.tar.gz
ek301-prelim-2b61d521c51300575c981a48d256c87cbcf6e478.tar.bz2
ek301-prelim-2b61d521c51300575c981a48d256c87cbcf6e478.zip
update thinsg
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