Calculation of derivative of a waveform

16 views (last 30 days)
How can I find the derivative of following waveform using matlab coding?

Accepted Answer

Star Strider
Star Strider on 9 Apr 2021
Use the gradient function. That appears to be relatively noise-free, so gradient should produce a useful result.
If noise is a problem (that will be revealed as a number of sharp spikes in the signal after using gradient), then process it first with the sgolayfilt function to remove most of the the noise, then calculate the gradient.
Other options to remove the noise would be to first calculate the fft to see the signal spectrum, and then use that to design and use a lowpass filter with an appropriate cutoff frequency.

More Answers (0)

Categories

Find more on Electrophysiology 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!