Initialization

This commit is contained in:
Max Heckmann
2022-12-30 22:44:46 +01:00
parent 4456b5c7bf
commit f5df07157d
8 changed files with 212 additions and 0 deletions

18
loadData.m Normal file
View File

@@ -0,0 +1,18 @@
function [dataListTable] = loadData(tdmsFileList)
%Convert struct to cell for easy access
tdmsFileList = struct2cell(tdmsFileList);
for i = 1:width(tdmsFileList)
%Read files and save them as a table in a list
data = tdmsread(strcat(tdmsFileList{2, i}, '\', tdmsFileList{1, i}));
%Take the table out of an 1x1 cell array and convert it in a cell array.
dataListTable{i} = table2array(data{1,1});
end
end