%% sl 19
clear, clc
data = xlsread('measurement1.xlsx', 1, 'B2:D31');
plot(data(:,1), data(:,2));

%% sl 21
clear, clc, close all

x = -pi:0.01:pi;
fx = cos(x) + cosh(x)/10;
xlswrite('Excel_file.xlsx', x', 1, 'A1')
xlswrite('Excel_file.xlsx', fx', 1, 'B1')

%% sl 38
clear, clc

lastSeq   = 15;
thisTimer = timer;
thisTimer.Period        = 1/2;
thisTimer.ExecutionMode = 'fixedRate';
thisTimer.UserData      = 1;
thisTimer.TimerFcn      = {@timer_update, lastSeq};
start(thisTimer);


