How to get original Shape of data after Removing Noise using Histogram

1 次查看(过去 30 天)
Hello I hope you are doing well. I have the Dataset which have 279 values in array.
I have applied Preprocessing using Histogram which delete Noise using 33% of maximum Value
The first picture oldshape.jpg shows the Original shape at 338,343,348 with Noise.
The 2nd picture Newshape.jpg shows after applying Histogram In which shape is changed.
How can i get the original Shape after this algo of Histogram
h=histogram(NewDataset,10000,"BinMethod","sturges",'BinWidth',1,'BinLimits',[1 10000]);
[N,Edges,Bin] = histcounts(NewDataset,10000,"BinMethod","sturges",'BinWidth',1,'BinLimits',[1 10000]);
Retain = N > max(N)/3; % Retain Values In Bins Greater Than One-Third Of The Meximum Bin Count Value
FindBins = find(Retain)
DatasetValues = cell(1,length(FindBins));
for i=1:length(FindBins)
RetainDataLv = (Bin == FindBins(i)); % Values In 'Bin' Corresponding To 'Retain' Test
RetainData = NewDataset(RetainDataLv) ;
DatasetValues{i}=RetainData;
pre_output= cell2mat(DatasetValues);
end
figure;
scatter(1:length(pre_output),pre_output)
  2 个评论
Jan
Jan 2023-1-28
@Med Future: Please do not address specific users. Remember, that they get a notification, if you type "@xyz". If all users call some preferred other members, there will be huge number of notifications. Reading them reduces the time for posting answers, so with such notifications you try to increase your chance to get an answer on the costs of others.
Use these notifications only for persons, who are involved in the discussion already. Thanks.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by