I recently downloaded some code from matlab site to run it with octave. When I try to run a test.m file created by me that calls several functions from the downloaded source code files I receive:
octave:2> test
error: `verLessThan' undefined near line 101 column 8
error: called from:
error: /media/34GB/escola/efficientLBP/assignUserInputs.m at line 101, column 5
error: /media/34GB/escola/efficientLBP/efficientLBP.m at line 113, column 1
error: /media/34GB/escola/efficientLBP/test.m at line 5, column 7
checking the source file I found this code
if isempty(funcParamsNames)
isNoFuncParamsNames=true;
else
if verLessThan('matlab', '7.14') % again, old version do not support 'stable'.
funcParamsNames=unique(funcParamsNames); % This can lead to bugs :(
else
funcParamsNames=unique(funcParamsNames , 'stable');
end%
isNoFuncParamsNames=false;
end
So I was wondering if there is a way to make octave to recognizance this function. Thanks for your time.
uniqueis like Matlab'sunique(...,'sorted'), not likeunique(...,'stable'), as you can see here.If you need a'stable'for version Octave check this - Luis Mendo