add Matlab files
This commit is contained in:
@@ -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');
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
Fs = 50e3; % [Hz]
|
||||||
|
Ts = 1/Fs; % [s]
|
||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user