Smoothing data with sgolay filter
9 ビュー (過去 30 日間)
古いコメントを表示
Hi i have a question, if i have a code like this before,
smootheddata = smoothdata(z,"sgolay", "SmoothingFactor",0.25 );
how i exprese it in sgolay function ? Thank you
0 件のコメント
回答 (2 件)
Star Strider
2022 年 9 月 27 日
The default order for the 'sgolay' option is 2 (quadratic), however the 'SmoothingFactor' controls the window length (framelen in the sgolayfilt documentation), it has no exact definition, so an exact translation to sgolayfilt parameters is not possible for it.
For sgolayfilt I generally choose an order of 3 and an initial framelen value of 5% of the signal length. I then adjust the framelen value to get the result I want. It is possible to control these in the smoothdata function by setting the 'Degree' and window parameters.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!