Biomedical User Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get frequency spectrum from spectrogram?

Hi,

i'm trying to implement some wavelet frequency analysis in EMGS signal.

i've got a scalogram (X- time, Y- scale, Z-energy) and a spectrogram (X- time, Y-frequency, Z-amplitude), as you can see in the picture (middle graph).

spectrogram.png

How can I "rotate" axis of the graphic, or extract the frequency spectrum to get (Y-amplitue, X- frequency).

Or yet, how to get the values of X, Y and Z axis into arrays to build a new graphic? I've tried to use some property node, but no success.

Thanks!

Ramon Campos

0 Kudos
Message 1 of 4
(4,049 Views)

Hi Ramon,

I think in the block diagram, you could find the data for displaying is just a 2D array. It is easy to right click on the plot to select "transpose".

Thanks!

ZJ Gu

0 Kudos
Message 2 of 4
(2,983 Views)

Hi ZJ Gu,

in fact I try to transpose the graph, but it became something strange, as you can see....

spectrogram-02.png

and that data don't resolve my question.....

but thank you for the tip.

I'm still trying!!

Ramon Campos

0 Kudos
Message 3 of 4
(2,983 Views)

Hello again ZJ Gu!

after a big mess, I got some result.

but when I use low wavelets scales (4, 8, and 16) the spectrogram seems weird.

Can you please take a look at my code?

Here are the VI (lv 2010) and an EMG signal from biceps brachii in a 30 seconds isometric contraction.

Thanks!!!

Download All
0 Kudos
Message 4 of 4
(2,983 Views)