From 228ab67c6572d70de8ca30e3df962663a165a2d8 Mon Sep 17 00:00:00 2001
From: Ivar Stefansson <ist050@uib.no>
Date: Wed, 21 Dec 2016 18:28:13 +0100
Subject: [PATCH] Update check_points.m

---
 scripts/check_points.m | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/scripts/check_points.m b/scripts/check_points.m
index 4dcd7cf..d0ee5bb 100644
--- a/scripts/check_points.m
+++ b/scripts/check_points.m
@@ -1,17 +1,17 @@
-function [ nw, on] = check_points( x, a,b , isvertical)
+function [ northWest, on] = check_points( x, a,b , isVertical)
 %check_points Determines which of a number of 2D points in x lie north (west)
 % of the line ax + b and if any points lie on the line
 %   If the line is vertical, the constant x-value goes in the input a
 
-if isvertical
-    nw = x(:,1) < a;
-    on = x(:,1) == a;
+if isVertical
+    northWest   = x(:,1) < a;
+    on          = x(:,1) == a;
 elseif a == 0
-    nw = x(:,2) > b;
-    on = x(:,2) == b;
+    northWest   = x(:,2) > b;
+    on          = x(:,2) == b;
 else 
-    nw = a*x(:,1) + b < x(:,2);
-    on = a*x(:,1) + b == x(:,2);
+    northWest   = a*x(:,1) + b < x(:,2);
+    on          = a*x(:,1) + b == x(:,2);
 end
 
 end
-- 
GitLab