How to find the period between group of regularly spaced hot-spots?

조회 수: 6 (최근 30일)
raym
raym 2025년 1월 12일
답변: raym 2025년 1월 13일
I have a group of numbers with values enriched at uniformly regularly spaced hot-spots.
There is no other information available.
How to get the estimated length of the space between these hot-spots?
For this example, the interval is about 128.

채택된 답변

raym
raym 2025년 1월 13일
[a,aBinCenter] = hist(Data,1000);
a_gauss = imgaussfilt(imgaussfilt(imgaussfilt(a,10),10),10);
[Ypk,Xpk] = findpeaks(a_gauss);
aGapEstimation = mean(diff(Xpk))*(aBinCenter(2)-aBinCenter(1));

추가 답변 (1개)

Walter Roberson
Walter Roberson 2025년 1월 12일
Approximate_gap = mean(diff(find(abs(diff(YourSignal)) > TOLERANCE)));

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by