Init Auswertung_Truhe
ich vermute mal, dass ist die mathlab auswertung oder so
This commit is contained in:
parent
e4686bc7cb
commit
7dda56c78d
17
Auswertung_Truhe.m
Normal file
17
Auswertung_Truhe.m
Normal file
@ -0,0 +1,17 @@
|
||||
clear variables
|
||||
close all
|
||||
%% Data imprt
|
||||
data = importdata('LOGTRUHE.TXT');
|
||||
data.data(:,2) = [];
|
||||
data.data(:,1) = data.data(:,1)./3600;
|
||||
% Data in each row: time(h), temp(°C), state(0=off, 1=on)
|
||||
% pasting all odd rows in truhe1
|
||||
truhe1 = data.data(1:2:end,:);
|
||||
% pasting all even rows in truhe2
|
||||
truhe2 = data.data(2:2:end,:);
|
||||
|
||||
%% Plotting the data
|
||||
residual = truhe1(:,2)-truhe2(:,2)+16;
|
||||
plot(truhe1(:,1),truhe1(:,2), truhe2(:,1),truhe2(:,2), truhe1(:,1),residual)
|
||||
xlabel('time / h');
|
||||
ylabel('Temperature / °C');
|
Loading…
x
Reference in New Issue
Block a user