Skip to content
Snippets Groups Projects
Verified Commit 4e3cd7a0 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.

(cherry picked from commit ad97361f)
parent cb25cda3
No related branches found
No related tags found
Loading
Checking pipeline status
......@@ -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