add Matlab files

This commit is contained in:
2021-02-02 13:37:24 +01:00
parent 8bcbf3ad5b
commit 9e506f7b05
4 changed files with 17 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
%%
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');
+2
View File
@@ -0,0 +1,2 @@
Fs = 50e3; % [Hz]
Ts = 1/Fs; % [s]
Binary file not shown.
Binary file not shown.