Skip to content
Snippets Groups Projects
Verified Commit 42578676 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Provisions for Octave 5

(cherry picked from commit d4217c02)
parent 4e143c3d
No related branches found
No related tags found
No related merge requests found
Pipeline #988 failed
...@@ -82,8 +82,8 @@ if ~isoctave ...@@ -82,8 +82,8 @@ if ~isoctave
p{end+1} = '/missing/vec'; p{end+1} = '/missing/vec';
end end
% ordeig() doesn't exist in Octave % ordeig() doesn't exist in Octave < 5
if isoctave if isoctave && octave_ver_less_than('5')
p{end+1} = '/missing/ordeig'; p{end+1} = '/missing/ordeig';
end end
...@@ -119,8 +119,8 @@ if ~exist('struct2array') ...@@ -119,8 +119,8 @@ if ~exist('struct2array')
p{end+1} = '/missing/struct2array'; p{end+1} = '/missing/struct2array';
end end
% isfile is missing in Octave and Matlab<R2017b % isfile is missing in Octave < 5 and Matlab < R2017b
if isoctave || matlab_ver_less_than('9.3') if (isoctave && octave_ver_less_than('5')) || (~isoctave && matlab_ver_less_than('9.3'))
p{end+1} = '/missing/isfile'; p{end+1} = '/missing/isfile';
end end
......
...@@ -51,6 +51,7 @@ if isoctave ...@@ -51,6 +51,7 @@ if isoctave
warning('off', 'Octave:variable-switch-label'); warning('off', 'Octave:variable-switch-label');
warning('off', 'Octave:fortran-indexing'); warning('off', 'Octave:fortran-indexing');
warning('off', 'Octave:classdef-to-struct'); warning('off', 'Octave:classdef-to-struct');
warning('off', 'Octave:legacy-function'); % For strmatch and isdir
else else
% In MATLAB >= 7.7, don't display a warning if we use deprecated % In MATLAB >= 7.7, don't display a warning if we use deprecated
% interface to set seed of random number generators % interface to set seed of random number generators
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment