18 lines
276 B
Mathematica
18 lines
276 B
Mathematica
|
%%
|
||
|
tg = slrt;
|
||
|
|
||
|
f = SimulinkRealTime.openFTP(tg);
|
||
|
mget(f, 'data/data.dat');
|
||
|
close(f);
|
||
|
|
||
|
%% Convert the Data
|
||
|
data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data;
|
||
|
|
||
|
x = data(:, 1);
|
||
|
t = data(:, 2);
|
||
|
|
||
|
Ts = 1; % [s]
|
||
|
|
||
|
%% Save
|
||
|
save('mat/long_test.mat', 't', 'x', 'Ts');
|