필터 지우기
필터 지우기

Differece of two histograms

조회 수: 5 (최근 30일)
Timo Strotbaum
Timo Strotbaum 2018년 8월 1일
답변: Rachana Reddy Mamilla 2018년 8월 13일
Hello,
is there any easy way, of plotting the differnce between two histograms? the newer function histogram (compared to the old one "hist") doesnt save the histogram as a vector, just as an object. So I´m not able to calculate any further with the values?
Best regards,

답변 (1개)

Rachana Reddy Mamilla
Rachana Reddy Mamilla 2018년 8월 13일
Hello Timo, Though the function Histogram saves it as an Histogram object you can get its data using Histogram.Data/Histogram.Values(according to your requirement) and then find the absolute difference (you can use imabsdiff() or any other tradition way to find the difference) and plot it.
While comparing 2 histograms can be done using pdist2(h1,h2)
Hope this helps

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by