KKerr23
Mechanical
- Jun 8, 2012
- 41
I am currently performing an iteration calculation for a model that involves variably changing acceleration. The acceleration is dependent on position for this model. When I plot the data with respect to position, the data is accurate. However, when I plot it with respect to time the acceleration, speed, and position values are OK, but the time span that the motion undergoes is very inaccurate. It gets even worse when I try to decrease the time interval for each iteration. The time span that it is suppose to be is approximately 5-7 ms, but with small time intervals I get time spans that go from 1.4 ms to as small as 1e-4 ms (using a time interval as large as 0.1 ms and as small as 1e-8 ms).
Is this just computation issues within MATLAB or is this a major error within the code?
Is this just computation issues within MATLAB or is this a major error within the code?