IRDYn/GC_calibration/readDatFile.m

18 lines
453 B
Mathematica
Raw Normal View History

2024-11-06 15:46:33 +00:00
%load the file
filename = "data/GC_CALI.Dat";
h = fopen(filename);
data = fread(h);
fclose(h);
% Convert it to matlab variable
new_data = SimulinkRealTime.utils.getFileScopeData(data);
%
T = array2table(new_data.data);
%
T.Properties.VariableNames = {'posIn1', 'posIn2', 'posIn3', 'posIn4', 'posIn5', 'posIn6', 'posIn7', 'posIn8', 'posIn9', 'state', 'time'};
% CSV
writetable(T, 'data/GC_cali.csv');