17 lines
277 B
Matlab
17 lines
277 B
Matlab
%%
|
|
tg = slrt;
|
|
|
|
f = SimulinkRealTime.openFTP(tg);
|
|
mget(f, 'data/data.dat');
|
|
close(f);
|
|
|
|
%% Convert the Data
|
|
data = SimulinkRealTime.utils.getFileScopeData('data/data.dat').data;
|
|
|
|
d = data(:, 1);
|
|
F = data(:, 2);
|
|
t = data(:, end);
|
|
|
|
%% Save
|
|
save('mat/flex_1_x.mat', 't', 'd', 'F');
|