We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653110a commit 1e3ff2fCopy full SHA for 1e3ff2f
src/isOctave.m
@@ -0,0 +1,10 @@
1
+function retval = isOctave
2
+ % Return: true if the environment is Octave.
3
+ persistent cacheval % speeds up repeated calls
4
+
5
+ if isempty (cacheval)
6
+ cacheval = (exist ('OCTAVE_VERSION', 'builtin') > 0);
7
+ end
8
9
+ retval = cacheval;
10
+end
tests/test_setTargetPositionInSequence.m
@@ -1,4 +1,9 @@
function test_suite = test_setTargetPositionInSequence %#ok<*STOUT>
+ if isOctave()
+ pkg('load','statistics');
try % assignment of 'localfunctions' is necessary in Matlab >= 2016
test_functions = localfunctions(); %#ok<*NASGU>
catch % no problem; early Matlab versions can use initTestSuite fine
0 commit comments