From 97ecec405aefa0b8d476543c6aa96249a9539398 Mon Sep 17 00:00:00 2001
From: Laura Nervo <laura.nervo@esrf.fr>
Date: Wed, 19 Feb 2014 15:26:53 +0100
Subject: [PATCH] gtDetectorTwoTheta : fixed bug with vertcat

Signed-off-by: Laura Nervo <laura.nervo@esrf.fr>
---
 zUtil_Cryst/gtDetectorTwotheta.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/zUtil_Cryst/gtDetectorTwotheta.m b/zUtil_Cryst/gtDetectorTwotheta.m
index 87467779..f0125453 100644
--- a/zUtil_Cryst/gtDetectorTwotheta.m
+++ b/zUtil_Cryst/gtDetectorTwotheta.m
@@ -68,8 +68,7 @@ minangle = parameters.labgeo.detanglemin;
 maxangle = parameters.labgeo.detanglemax;
 
 % remove reflections out of detector
-ind = find(tt > maxangle/2);   % ind contains reflections whichdo not impinge on the detector
-ind = [ind; find(tt < minangle/2)];
+ind = find(tt > maxangle/2 | tt < minangle/2);
 % ...remove them
 tt(ind)    = [];            
 hkl(ind, :) = [];
-- 
GitLab