Skip to content
Snippets Groups Projects
Commit a467ff68 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

use findstr instead of contains for older matlab version

parent e4d1dfde
No related branches found
No related tags found
1 merge request!4Feature/testsuite
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment