How to remove Noise using histogram In Matlab

7 次查看(过去 30 天)
Hello Everyone, i hope you are doing well. I have the following data in which I have some noise. I want to remove the Noise using Histogram or any other Method. I have attached the picture below which is the noise.
How can i do that?

回答(1 个)

Abderrahim. B
Abderrahim. B 2022-8-28
Hi!
Below is a workflow based on groupcounts function:
clear
load noisydata.mat
figure
subplot(211)
plot(dataset, 'o')
title("noisy data")
% Filtering based groupcounts
[GC, GR] = groupcounts(dataset) ;
denoisedData = dataset(ismember(dataset, GR(GC>10))) ; % group that has count less than 10 will be removed
subplot(212)
plot(denoisedData, 'o')
title("denoised data")
Hope this helps
  14 个评论
Abderrahim. B
Abderrahim. B 2022-8-29
I understand, try other filtering methods. This method - based find groups count requires to set a threshold for filtering.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Distribution Plots 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by