Move matlab files in the matlab directory

This commit is contained in:
2020-11-10 10:23:01 +01:00
parent 4b3076bae5
commit 52ae53a4ac
6 changed files with 0 additions and 0 deletions

7
matlab/analyse_data.m Normal file
View 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
View 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
View File

@@ -0,0 +1 @@
Ts = 1e-4; % [s]

Binary file not shown.

BIN
matlab/test_attocube.slx Normal file

Binary file not shown.

Binary file not shown.