-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanAllTables.m
More file actions
18 lines (18 loc) · 831 Bytes
/
cleanAllTables.m
File metadata and controls
18 lines (18 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function outStruct = cleanAllTables(inStruct)
outStruct = inStruct;
fn = string(fieldnames(outStruct));
for i = 1:numel(fn)
% fprintf("%s, removing cols:\n", fn(i));
% fprintf("before:\n");
% fprintf("%s, ", string(inStruct.(fn(i)).Properties.VariableNames));
% fprintf("\nCols removed by timestamp func:\n");
outStruct.(fn(i)) = removeAllButFirstTimelineCols(outStruct.(fn(i)));
% fprintf("after timestamp func:\n");
% fprintf("%s, ", string(outStruct.(fn(i)).Properties.VariableNames));
% fprintf("\nCols removed by annotation func:\n");
outStruct.(fn(i)) = removeAnnotationCols(outStruct.(fn(i)));
% fprintf("end:\n");
% fprintf("%s, ", string(outStruct.(fn(i)).Properties.VariableNames));
% fprintf("\n\n");
end
end