-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbatchExamples.m
More file actions
35 lines (24 loc) · 847 Bytes
/
batchExamples.m
File metadata and controls
35 lines (24 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% This file shows some simple examples of how to use the unisensMatlabTools
% Copyright 2018 movisens GmbH, Germany
%convert all unisens datasets from bin to csv, values in csv are scaled to physical unit
basePath='C:\temp\HRV Daten\bin';
pathList = getAllUnisensPaths(basePath)
for i=1:length(pathList);
path = pathList{i};
out = strrep(path,'\bin','\csv')
unisensBin2Csv(path,false,out);
end
%convert all unisens datasets from csv to bin
basePath='C:\temp\EDA-Daten\in';
pathList = getAllUnisensPaths(basePath)
for i=1:length(pathList);
path = pathList{i};
out = strrep(path,'\in','\out')
unisensCsv2Bin(path,out);
end
%remove all artifact.csv entries from all unisens datasets
pathList=getAllUnisensPaths('I:\temp');
for i=1:length(pathList)
disp(pathList{i});
removeEntry(pathList{i}, 'artifact.csv');
end