Effacer les filtres
Effacer les filtres

How can I extact the period from a binary image in which I can visually see a sinusoid?

1 vue (au cours des 30 derniers jours)
sing
sing le 15 Fév 2016
After calculating the spectogram of my data [S, F, T, P] = spectrogram(sr,256,250,F,fs) and I consider I = mat2gray(abs(S)); Then,I operate a thresholding on I and I obtain I_bin. If I plot I_bin: imagesc(T,F,I_bin) colormap(gray) axis xy xlabel ('Time [s]') ylabel ('Frequency [Hz]')
My problem is: I would like to find the way to extract the time distance between 2 peaks(ACTUALLY THE FIRST AND THIRD) but I don't know how to do it from a binary matrix like I_bin
Since now I found the frequency value : [row,col] = find(I_bin); fd_max = abs(F(min(row),1)); And I would like to find the two position of the vector T such that F=fd_max
Hope you'll help me!
Many thanks!!

Réponses (0)

Catégories

En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by