Take care of matlab's version when using builtin intersect function.
parent
ddd95361ba
commit
2078e06b16
|
@ -56,7 +56,11 @@ if ~isequal(A.freq,B.freq)
|
||||||
return
|
return
|
||||||
end
|
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();
|
C = dates();
|
||||||
if isempty(time)
|
if isempty(time)
|
||||||
|
|
Loading…
Reference in New Issue