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

6 vues (au cours des 30 derniers jours)
raym
raym le 12 Jan 2025
Réponse apportée : raym le 13 Jan 2025
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.

Réponse acceptée

raym
raym le 13 Jan 2025
[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));

Plus de réponses (1)

Walter Roberson
Walter Roberson le 12 Jan 2025
Approximate_gap = mean(diff(find(abs(diff(YourSignal)) > TOLERANCE)));

Community Treasure Hunt

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

Start Hunting!

Translated by