From a467ff68652cbf8a540450ffaedd1cef42b023e6 Mon Sep 17 00:00:00 2001 From: Olivier Sauter <olivier.sauter@epfl.ch> Date: Tue, 9 Jul 2019 16:30:26 +0200 Subject: [PATCH] use findstr instead of contains for older matlab version --- matlab/gdatpaths.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/gdatpaths.m b/matlab/gdatpaths.m index c92cda1d..d7dcdd43 100644 --- a/matlab/gdatpaths.m +++ b/matlab/gdatpaths.m @@ -10,8 +10,8 @@ end a=which('gdat'); path_gdat = fileparts(a); -if ~contains(path,[path_gdat,':']) - warning('Folder %s containing gdat.m is not in your path!!',path_gdat); +if ~findstr(path,[path_gdat,':']) + warning('Folder %s containing gdat.m is not in your path!!',path_gdat); end if isempty(a), error('gdat is not in the MATLAB path'); end -- GitLab