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

Fix bug under MATLAB < R2016b introduced in 906062cf

The logic for testing the MATLAB version was incorrect.
parent dd7aa1e4
Branches
Tags
No related merge requests found
Pipeline #7319 passed
......@@ -98,7 +98,7 @@ if T_max > 0
% check if last binding regime was already stored
tmp = 0*binding_indicator;
tmp(1:end-T_max+1,:) = binding_indicator(T_max:end,:);
if ~isoctave && ~matlab_ver_less_than('9.1') % Automatic broadcasting was introduced in MATLAB R2016b
if ~isoctave && matlab_ver_less_than('9.1') % Automatic broadcasting was introduced in MATLAB R2016b
itmp = find(~any(bsxfun(@minus, dictionary.binding_indicator(1:length(tmp)*2,:), tmp(:))));
else
itmp = find(~any(dictionary.binding_indicator(1:length(tmp)*2,:)-tmp(:)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment