If you would provide some sample data it would help people reproduce your problem.
I made up my own data but your code seems to work just fine:
t=0:0.1:10;
Acc=sin(t);
vel0=-1;
pos0=0;
Vel = vel0 + cumtrapz(t,Acc)
Pos = pos0 + cumtrapz(t,Vel)
plot(t,Acc,t,Vel,t,Pos)
legend('Acc','Vel','Pos')