Central difference approximation scripts to calculate first derivatives of smoothed signal got from smooth function, Method: 'Savitzky-Golay'

3 ビュー (過去 30 日間)
I want to calculate first derivatives with respect to time for my smoothed data. I used Savitzky-Golay method in 'smooth' matlab function.I need information where I can get:
1. Any downloadable matlab scripts that can do this first derivative calculation by employing central difference approximation.
2. Any matlab function (in-built or user-written that can be downloaded) that can do the same exclusively for this smoothed result using Sgolay method in smooth function. Something like how 'fnder' is to 'csaps'.
Thanks in advance Harish

採用された回答

Amit
Amit 2014 年 1 月 27 日
  3 件のコメント
Amit
Amit 2014 年 1 月 27 日
SG is a filter for noisy data. SG fits a pieces of data using polynomials order defined and smooths it. Thus, the derivative of the smoothed data will be in a way differential of those piecewise polynomials. In a way, you can get smoothed data and the derivative at the same time.
SreeHarish Muppirisetty
SreeHarish Muppirisetty 2014 年 1 月 27 日
Great, Thanks!
Your answers are crisp and to the point!
Cheers!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSmoothing and Denoising についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by