Finding a value from spectogram

I created this spectogram through a vector of amplitudes.
How can I find the max(:) Power/Frequency of this graph if I wasn't to graph it but just writing a line of code? I have many such vectors and I can't look at the spec for each one.

5 件のコメント

Adam
Adam 2020 年 2 月 28 日
Did you use the spectrogram function from the Signal Processing Toolbox? If so take a look at
doc spectrogram
There are various function signatures that return the data as outputs rather than plotting it. I can't remember off-hand what is actually plotted by default, but it is based off one of those outputs.
Image Analyst
Image Analyst 2020 年 2 月 28 日
You forgot to include your amplitude data and your code, so about all I can say is to use the max() function.
Lucrezia Cester
Lucrezia Cester 2020 年 2 月 28 日
nevermind found it.
Just saved the matrix of the figure.
Rodrigo Rodrigues Bessa
Rodrigo Rodrigues Bessa 2023 年 11 月 8 日
編集済み: Rodrigo Rodrigues Bessa 2023 年 11 月 8 日
if you generate a handle for the colorbar after creating the spectrogram, you can see its max and min
spectrogram(y)
c = colorbar
c.Limits
Mathieu NOE
Mathieu NOE 2023 年 11 月 9 日
hi
it's not clear to me if you want the overall max of the entire spectrogram or if you want the max of the spectrum for each time slice (i.e each fft output) - in the second case you end up with a line of multiple maxima vs time.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeTime-Frequency Analysis についてさらに検索

質問済み:

2020 年 2 月 28 日

コメント済み:

2023 年 11 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by