Authored by viateur

Remove "contains" doesn't exist in matlab 2015

... ... @@ -222,20 +222,20 @@ for c=1:length(KeepEvent) % Navigate all stim events
end
end
elseif numel(numbr) == 2
if (contains(noteName, [numbr{2} 'us']) || contains(noteName, [numbr{2} 'mA']) ...
|| contains(noteName, [numbr{2} 'Hz']))
if ~isempty(strfind(noteName, [numbr{2} 'us'])) || ~isempty(strfind(noteName, [numbr{2} 'mA'])) ...
|| ~isempty(strfind(noteName, [numbr{2} 'Hz']))
if numel(numbr{1}) == 2
elecno = strcat(numbr{1}(1),'_',numbr{1}(2));
if str2double(numbr{1}(1)) + 1 == str2double(numbr{1}(2)) || str2double(numbr{1}(1)) == str2double(numbr{1}(2)) + 1
noteName = strrep(noteName,numbr{1},elecno);
end
elseif contains(numbr{1},'10')
elseif ~isempty(strfind(numbr{1},'10'))
noteName = strrep(noteName,'10','_10_');
elseif numel(numbr{1}) == 4
elecno = strcat(numbr{1}(1:2),'_',numbr{1}(3));
noteName = strrep(noteName,numbr{1},elecno);
elseif contains(noteName, [numbr{1} 'mA']) || contains(noteName, [numbr{1} 'Hz'])
if ~contains(numbr{1},'.')
elseif ~isempty(strfind(noteName, [numbr{1} 'mA'])) || ~isempty(strfind(noteName, [numbr{1} 'Hz']))
if isempty(strfind(numbr{1},'.'))
if numel(numbr{1}) == 3
elecno = strcat(numbr{1}(1),'_',numbr{1}(2),'_',numbr{1}(3));
noteName = strrep(noteName,numbr{1},elecno);
... ...