15 lines
253 B
Mathematica
15 lines
253 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(:, end);
|
||
|
|
||
|
%% Save
|
||
|
save('mat/noise.mat', 't', 'x');
|