made lmmcp compatible with Octave

time-shift
Michel Juillard 2014-05-18 21:12:10 +02:00
parent f65b563e2d
commit 2c5eb9814b
1 changed files with 1 additions and 1 deletions

View File

@ -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') ;