about summary refs log tree commit diff
path: root/usth/MATH2.2/labwork/5/profit.m
diff options
context:
space:
mode:
Diffstat (limited to 'usth/MATH2.2/labwork/5/profit.m')
-rw-r--r--usth/MATH2.2/labwork/5/profit.m15
1 files changed, 0 insertions, 15 deletions
diff --git a/usth/MATH2.2/labwork/5/profit.m b/usth/MATH2.2/labwork/5/profit.m
deleted file mode 100644
index b196205..0000000
--- a/usth/MATH2.2/labwork/5/profit.m
+++ /dev/null
@@ -1,15 +0,0 @@
-function z = profit (x, y)
-  A = [7 11; 10 8];
-  b = [77; 80];
-  c = [150; 175];
-  [m n] = size (x);
-  z = -inf (m, n);
-  for s = 1 : m
-    for t = 1 : n
-      r = [x(s, t); y(s, t)];
-      if A * r <= b
-        z(s, t) = dot (c, r);
-      endif
-    endfor
-  endfor
-endfunction