From 2c5eb9814bd9caa88741c286e36e86ff53299ea0 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Sun, 18 May 2014 21:12:10 +0200 Subject: [PATCH] made lmmcp compatible with Octave --- matlab/lmmcp/catstruct.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/lmmcp/catstruct.m b/matlab/lmmcp/catstruct.m index 8248366e4..e29d36469 100644 --- a/matlab/lmmcp/catstruct.m +++ b/matlab/lmmcp/catstruct.m @@ -124,7 +124,7 @@ else FN = squeeze(FN) ; VAL = squeeze(VAL) ; MatlabVersion = version; - if str2double(MatlabVersion(end-5:end-2))<2013 % Equivalent to, but faster than if verLessThan('matlab','8.1') + if isoctave || str2double(MatlabVersion(end-5:end-2))<2013 % Equivalent to, but faster than if verLessThan('matlab','8.1') [UFN,ind] = unique(FN) ; else [UFN,ind] = unique(FN,'legacy') ;