1
Vote

any([],1) gives different results in Octave and Matlab

description

While in Matlab it results in empty matrix, in Octave any([],1) is equal to false.
In IRIS I found only one place where this may cause a problem -- @model/myparse.m, around line 1038. We have to add a test, checking if argument of any() is non-empty:
if ~isempty(occurF(This.eqtntype == 1,This.nametype == 1,t0))
    aux = ~any(occurF(This.eqtntype == 1,This.nametype == 1,t0),1);
    if any(aux)
      ...
    end
end

comments