%Skript zur Integration eines Beschleunigungssignals
clear all
close all
clc
%% Plotten des Beschleunigungssignals
load('a_und_t');

figure;
hold on
grid on
plot(t,a);
title('Beschleunigungssignal');
ylabel('a in m/s^2');
xlabel('Zeit t in s');
hold off

%% Integration des Beschleunigungssignals

v=cumtrapz(a,t);
figure;
hold on
grid on
title('Geschwindigkeit')
plot(t,v);
ylabel('v m/s');
xlabel('Zeit t in s');
hold off


