Smooth a noisy plot.

12 ビュー (過去 30 日間)
Riddhesh
Riddhesh 2023 年 11 月 14 日
コメント済み: Riddhesh 2023 年 11 月 19 日
この 質問 は Cris LaPierre さんによってフラグが設定されました
I want to smoothen my elevation vs distance data which is noisy and also diff(elevation)/diff(distance) = grade; grade vs distance data which is very noisy. I used smoothdata() which is oversmoothing my data and i used hampel which shows no changes. How can I vary the smoothing factor or is there any other method to do. Please let me know.
  2 件のコメント
Chunru
Chunru 2023 年 11 月 14 日
try different "methods" and "window" sizes with smoothdata.
DGM
DGM 2023 年 11 月 16 日
Being able to move answers between threads would be reaally handy right about now.

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

採用された回答

Pratyush
Pratyush 2023 年 11 月 14 日
Hi Riddhesh,
I understand that you want ways to smoothen your noisy graphs to a user defined extent.
Here are a couple of methods that could help you:
  1. You can adjust the smoothing factor by using the "SmoothingFactor" parameter in the "smoothdata()" function. This allows you to control the amount of smoothing applied to your data.
  2. You can consider using "moving averages" technique, you can use the "smooth()" function in MATLAB.
  3. Or you can use Savitzky-Golay filters, for this you can use the "sgolayfilt()" function in MATLAB.
Hope this helps.
  1 件のコメント
Riddhesh
Riddhesh 2023 年 11 月 19 日
Thank you. That helped me alot.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by