How can change the time domain data into length domain data?

Now I have a set of acceleration data in time-domain, the interval time (2s) and the speed (5 mm/s) are known. I want to ask, How can I change the acceleration data(time domain) into acceleration data (length-domain).
thanks for the helping. Regards.

 Accepted Answer

As best I can understand, you want acceleration in terms of distance. I would use two cumtrapz integrations to get distance from acceleration:
dx2dt2 = 0:0.01:1; % Acceleration Vector
x = cumtrapz(cumtrapz(dx2dt2)); % Distance Vector
figure(1)
plot(x, dx2dt2)
grid

4 Comments

Hi Star strider,
Thanks for your answer. I think I didn't present my question clearly. I will try to describe it in another way. Now, I have two sets of data A =[2,3,4,5,6,7,8,9,0,1]. and B =[1,2,3,4,5,6,7,8,9,0]. How can I create data C, which plot(C) is same as plot(B,A) .
Regards
That is not possible. The plot function will plot a (10x2) or (2x10) matrix ‘C’ that you create, but the plot will not look like plot(B,A). That is simply not how the function works.
Thanks for the answer. I understand it now. :D I wish you have a great day.
My pleasure.
I wish you the same.

Sign in to comment.

More Answers (0)

Categories

Find more on Geology in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!