How to apply smoothing filter to histogram2 to reduce noise

I have to plot x/y histogram using histogram2 with substantial number of bins. As a result I see sharp spikes that non-physical and clutter the figure. Increasing the number of data to reduce this noise is not an option.
Is there a filter (e.g. running average or something like this) to reduce the noise?

1 件のコメント

dpb
dpb 2022 年 8 月 15 日
Reducing the number of bins will have similar effect or you can try smoothdata

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

回答 (1 件)

Rohit
Rohit 2022 年 8 月 23 日

0 投票

Hi,
I understand that you are trying to smoothen the sharp spikes. As per my understanding, you can use Signal Smoothing to accomplish this. For further information, you can refer to the below documentation links:

カテゴリ

製品

リリース

R2021b

質問済み:

2022 年 8 月 15 日

回答済み:

2022 年 8 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by