i want to use the accerleration with offset added to it and then double intgrate using cumtrapz to obtain velocity and position, but when i plot my offset position it doesnt look anywhere near my real position even tho it has only 0.1 offset from integrating acceleration.
here is the code i used
v0 = a*(2*pi/f)*cos(2*pi/f*t(1));
p0 = a*sin((2*pi)/f*t(1));
acc= -4*a.*pi^2./f.^2 .* sin(2*pi./f .* t);
title(' real positon')
i want to be able to add offset to acceleration, and when i double intgrate to get a position with offset, somewhat obtain a plot similar to my real position even tho it has 0.1 offset.
any help would be massivley appreaciated