Compare similarity of two histograms?

85 views (last 30 days)
Julozert
Julozert on 3 May 2020
Answered: Sai Sri Pathuri on 6 May 2020
Hi guys,
I have 2 histograms which are normalized with 'probability' and both have 26 bars each. I want to compare histogram2 to histogram1 and "rotate" the bars or data of histogram2 and find out when both histograms were the most similiar.
So I was wondering if anyone of you had an idea how I can test the histograms of similarity. I dont know how to compare bc the values of each bar are not the exact same values.
Any ideas are appreciated, i feel pretty helpless right now

Answers (1)

Sai Sri Pathuri
Sai Sri Pathuri on 6 May 2020
You may use pdist2 function to compare the histograms.
Refer the following answer for more details

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!