update selectSide() algorithm, fix plot.m
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
selectSide(front);
|
||||
%selectSide(rear);
|
||||
|
||||
fields = fieldnames(FileData);
|
||||
fields = fieldnames(FileData);
|
||||
for K = 1 : length(fields)
|
||||
thisvar = fields{K};
|
||||
thisdata = FileData.(thisvar);
|
||||
if ~isnumeric(thisdata)
|
||||
warning('Skipping field %s which is type %s instead of numeric', thisvar, class(thisvar))
|
||||
else
|
||||
if carSide == 'front'
|
||||
thisfile = sprintf('Front_%s.csv', thisvar);
|
||||
else
|
||||
thisfile = sprintf('Rear_%s.csv', thisvar);
|
||||
end
|
||||
csvwrite(thisfile, thisdata);
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user