better fix
This commit is contained in:
parent
1c9612aca6
commit
d3b8a9ac41
@ -16,9 +16,17 @@ function [data] = vector2timetable(data_path, varargin)
|
|||||||
end
|
end
|
||||||
try
|
try
|
||||||
data = synchronize(tt{:},"union","nearest");
|
data = synchronize(tt{:},"union","nearest");
|
||||||
|
catch
|
||||||
|
try
|
||||||
|
for i=1:length(tt)
|
||||||
|
data_unsorted = tt{i};
|
||||||
|
data_all{i} = sortrows(data_unsorted);
|
||||||
|
end
|
||||||
|
data = synchronize(data_all{:},"union","previous");
|
||||||
catch
|
catch
|
||||||
data = tt{:};
|
data = tt{:};
|
||||||
end
|
end
|
||||||
|
end
|
||||||
% union -> union of the row times
|
% union -> union of the row times
|
||||||
% method -> fill gaps in output with nearest neighbor in the input timetable
|
% method -> fill gaps in output with nearest neighbor in the input timetable
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user