Move matlab files in the matlab directory
This commit is contained in:
7
matlab/analyse_data.m
Normal file
7
matlab/analyse_data.m
Normal file
@@ -0,0 +1,7 @@
|
||||
load('./mat/test.mat', 't', 'x');
|
||||
|
||||
figure; plot(t, x)
|
||||
|
||||
load('./mat/long_test.mat', 't', 'x');
|
||||
|
||||
figure; plot(t/60/60, 1e9*x)
|
17
matlab/run_test.m
Normal file
17
matlab/run_test.m
Normal file
@@ -0,0 +1,17 @@
|
||||
%%
|
||||
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');
|
1
matlab/setup.m
Normal file
1
matlab/setup.m
Normal file
@@ -0,0 +1 @@
|
||||
Ts = 1e-4; % [s]
|
BIN
matlab/speedgoat_IO318_100k_CI_01585.mat
Normal file
BIN
matlab/speedgoat_IO318_100k_CI_01585.mat
Normal file
Binary file not shown.
BIN
matlab/test_attocube.slx
Normal file
BIN
matlab/test_attocube.slx
Normal file
Binary file not shown.
BIN
matlab/test_attocube.slx.r2018a
Normal file
BIN
matlab/test_attocube.slx.r2018a
Normal file
Binary file not shown.
Reference in New Issue
Block a user