Take care of matlab's version when using builtin intersect function.

time-shift
Stéphane Adjemian (Charybdis) 2013-11-04 10:55:46 +01:00
parent ddd95361ba
commit 2078e06b16
1 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,11 @@ if ~isequal(A.freq,B.freq)
return
end
time = intersect(A.time,B.time,'rows');
if isoctave || matlab_ver_less_than('8.1.0')
time = intersect(A.time,B.time,'rows');
else
time = intersect(A.time,B.time,'rows','legacy');
end
C = dates();
if isempty(time)