Problem using Derivative block

Hello MathWorks Support Team!
I am having problems using secondary derivative as shown in the picture, please tell me how to fix it.
Why is there such a peak here?
Thank you very much!

 Accepted Answer

Mathieu NOE
Mathieu NOE on 6 Nov 2020
hello
I personnaly would not use the derivative blocks
In the worst case I replace with high pass filter (as you did)
just to smooth the sharp transients of the derivative blocks, I added some rate limiter blocks, but the rate limits must be set according to your signal amplitude and frequency , which is definitively less practical than a high pass filter (IMHO)

More Answers (1)

Mathieu NOE
Mathieu NOE on 6 Nov 2020
hi
your initial conditions of the derivation blocks are probably zero (by default)
the first derivative is the initial slope of you signal , which is 1
so at the very beginning of the first derivative you have a discontinuity from 0 (IC) to 1, which is a step by definition
when you derive a step function, you get an infinite impulse (theory)

1 Comment

Thank "mathieu NOE" very much, so is there a way for me to fix that in the simple schematic above? I have also referenced the method cited in this link but failed, looking forward to your help!
Send you the file and link.

Sign in to comment.

Products

Release

R2017b

Community Treasure Hunt

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

Start Hunting!