%
%    train experiment 2, samp=512, duration=15 s
%
g=9.81;
load bounce.txyz
t=bounce(:,1);
N=length(t);
tN=t(N);
i=1:N;
x=bounce(:,2);
y=bounce(:,3);
z=bounce(:,4);
cal=bounce(:,5);
%
%   plot each channel
%
figure(1)
subplot(4,1,1);plot(t,x);
axis([0,tN,-12.,12.])
ylabel('acceleration m/s**2')
title('CH1')
subplot(4,1,2);plot(t,y);
axis([0,tN,-12.,12.])
ylabel('acceleration m/s**2')
title('CH2')
subplot(4,1,3);plot(t,z);
axis([0,tN,-12.,12.])
ylabel('acceleration m/s**2')
title('CH3')
subplot(4,1,4);plot(t,cal);
axis([0,tN,0.5,1.5])
ylabel('|g|/g0')
xlabel('time (s) ')
%
