For this last exercise, as practice in reading and using real acceleration data, you will integrate two-dimensional data that is stored as ASCII values in text files “axtestdata.txt” and “aytestdata.txt”. Read these data files with the following MATLAB commands:
MATLAB Listing 4
ax=load('axtestdata.txt','-ascii');
ay=load('aytestdata.txt','-ascii');
Using a time step dt=0.01 and initial conditions v(1) = (-475i – 75j), s(1) = 0i +0j, integrate these acceleration data, then generate the following plots one at time:
1. x-acceleration vs time
2. y-acceleration vs time
3. x-velocity vs time
Get Answers For Free
Most questions answered within 1 hours.