Clear Filters
Clear Filters

How I can produce the double differentiation of digital signal data without knowing the function?

1 view (last 30 days)
Hello all,
I have 5120 displacement data points. I want to double differentiate the data points to get the acceleration.
Example of my data points:x = [0 0.002 0.0039 0.0059 0.0078 0.0098 0.0117]; time(s) y = [-0.5570 0.1310 0.4010 0.0722 -0.5210 -0.8090 -0.7230]; displacement (m/s)
How I can produce the double differentiation of digital signal data without knowing the function?
Please help me!
Please advice.
Thank you for your time.
Regards, SMY

Accepted Answer

Star Strider
Star Strider on 8 Jul 2016
The del2 function can do this, but you have to be careful. Differentiation significantly amplifies noise.
  22 Comments
SMY
SMY on 20 Jul 2016
&#1I have a good news to share with you which I already solved the problem. I used a wrong variable previously that’s why I cannot achieved the target that I want to.From here I learned something. Every coding need to check line by line carefully and never underestimate anything. Because coding is so sensitive things. :D &#1
&#1 Thank a lot Star for your time, your kindness. I really appreciated. Talking to people can give a lot benefits.
Star Strider
Star Strider on 20 Jul 2016
As always, my pleasure!
I’m glad you got it sorted!
‘Every coding need to check line by line carefully and never underestimate anything.’
I could not possibly have said it better! It brings to mind a poem posted on the Stanford University Computer Bulletin Board in the late 1970s:
I really hate this damned machine,
I wish that they would sell it!
It won’t do what I want it to,
But only what I tell it!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!