Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

matlab code for calculating hilbert marginal spectrum of a signal

1,351 views
Skip to first unread message

madhwendra tripathi

unread,
Apr 17, 2010, 12:55:24 PM4/17/10
to
plz...anyone send me the matlab code for calculating "hilbert marginal spectrum of a signal"...

brief description:-
i hav already written the code for "hilbert spectum" of my signal..
but now i need to find out "hilbert marginal spectrum"..

plz.. anyone help me...

Jaime Delgado Saa

unread,
May 5, 2010, 11:32:05 AM5/5/10
to
Hi
The only thing you have to do is to sum the amplitudes for each one of the values instantaneous frequencies, then the final vector contains the amplitude contribution of each frequency. let me know is more info is needed. See you!

Jaime

madhwendra tripathi

unread,
May 6, 2010, 12:37:04 PM5/6/10
to
"Jaime Delgado Saa" <del...@sabanciuniv.edu> wrote in message <hrs31k$137$1...@fred.mathworks.com>...

> Hi
> The only thing you have to do is to sum the amplitudes for each one of the values instantaneous frequencies, then the final vector contains the amplitude contribution of each frequency. let me know is more info is needed. See you!
>
> Jaime

thanx a lot Mr. Jaime for replying my msg.
now i'm again describing my problem in brief and stepwise :


step1- i have taken a phonocardigram signal for analysis.
step2- then got its 10-12 "intinsic mode functions" by applying "Empirical mode decomposition".
step3- then i got its "hilbert spectrum" which is "Energy-Frequency-Time plot" from those intrinsic mode functions.

now, please tell me, which "instantaneous frequency" have to consider to get "hilbert margianal spectrum" and how?

please suggest me hints of detailed algorithms to find out "hilbert marginal spectrum".


- madhwendra

Jaime Delgado Saa

unread,
May 7, 2010, 5:51:03 PM5/7/10
to
Hi, just call me Jaime!

I just upload a function that make the calculation of the Marginal Hilbert Spectrum (mhs), it takes as input the amplitude/energy of the intrinsic mode functions and the instantaneous frequency for each of those imf's (wich are the output of the hilbert spectrum), then if you have 10 imf´s the input are 2 matrices of size (length of data,10) , the outputs are 2 vectors, one containing the mhs and other the frequencies values for each element of the first vector, the you can use this 2 vectors to plot the mhs.

I just upload the file, so in next days (maybe tomorrow) will be availabale, let me know if work for you, if there is some bugs also letme know to fix it.

I hope be useful for you.

see you!

Jaime

madhwendra tripathi

unread,
May 10, 2010, 8:47:21 AM5/10/10
to
"Jaime Delgado Saa" <del...@sabanciuniv.edu> wrote in message <hs2207$4ao$1...@fred.mathworks.com>...


hi jaime,

its pleasure to me that u replied me again..
but as u told in your last message that u have uploaded a function file for calculating "Marginal hilbert spectrum".. but, till now i have not received that file...
please send me that file again.. i'll be very thankful to you..

u can also send that file at my e-mail id.

madhwen...@gmail.com


thank you very much !!

madhwendra

madhwendra tripathi

unread,
May 10, 2010, 8:49:07 AM5/10/10
to
"Jaime Delgado Saa" <del...@sabanciuniv.edu> wrote in message <hs2207$4ao$1...@fred.mathworks.com>...

Jaime Delgado Saa

unread,
May 10, 2010, 12:17:27 PM5/10/10
to
Hi, just a couple of minuts ago the file was acepted and appear in my profile.
this shoud work.

This function calculate the contribution (sum) of each frequency in the instantaneous frequency vectors of each imf.

I am reviewing the teory againg in orther to make this comprable with the furier transform, where there are bins for the frequency, in hilbert-huang transform, the frequency is continuos, If I decide that some improvement should be done, I will let you know.

I am using this package to calculate the hilbert huang transform (emd, imf, hilbertspectrum) :
http://perso.ens-lyon.fr/patrick.flandrin/emd.html, my function use the output of the gilbert spectrum of this package, but should work in general independently.

let me know any question

Jaime

madhwendra tripathi

unread,
May 12, 2010, 1:28:06 PM5/12/10
to
"Jaime Delgado Saa" <del...@sabanciuniv.edu> wrote in message <hs9bim$l5p$1...@fred.mathworks.com>...


hi Jaime,

thanx for sending me the program file for calculating mhs. but could not got the desired results... perhaps due to wrong implementation of signal etc.

i'm sending you text file of original heart sound signal signal (on which, i'm working for) this signal is sampled at 5000 samples/sec. please find its IMFs and then marginal hilbert spectrum.

after applying empirical mode decomposition on this signal, i got total 13 IMFs.
but after applying mhs (from your sent programs) on it i got an amplitude-frequency plot. but its not according to my desired results.

bcoz it should have frequency varying from 0 to 500 hz (maximum), but its varying from 0 to 3500 hz.

and it should show the plot like ; very first , strongest frequency, the lesser strong frquency....

but its not showing in this manner....... its showing the zig-zag variation...

please download my signal file and try to get the desired result...

is there need to apply any window, like hanning, hamming etc. (actually i dont have any idea to apply window technique on signal )

one thing more....... after obtaining marginal hilbert spectrum of my signal, i have to get the fourier spectrum (perhaps fft) of original signal. and then i have to compare the both spectrum (means mhs is compared with fourier spectrum).
so , i request you to send a program file to calculate fourier spectrum of same signal.

(from the whole data file, i have selected starting 7000 samples for complete HHT analysis)

Walid

unread,
Sep 30, 2010, 11:01:15 AM9/30/10
to

Hi, can you send me the code matlab for calculatin "hms"
@ wali...@live.fr
thanks a lot !

Antanas Spokas

unread,
Oct 26, 2010, 7:43:05 AM10/26/10
to
Hi Jamie,

Could you please send me the hms code, thanks a lot.

Antanas

nirajb...@gmail.com

unread,
Sep 4, 2017, 9:45:41 AM9/4/17
to
Hi, can you send me the code matlab for calculatin "hms"..
nirajb...@gmail.com

roza.gho...@gmail.com

unread,
Jan 2, 2019, 7:10:12 AM1/2/19
to
Hi,
I have to calculate the Hilbert spectrum and Hilbert marginal spectrum. I know this post is related to a long time ago, but maybe you can help me. Could you please send me the Hilbert spectrum and Hilbert marginal's Matlab code?

roza.gho...@gmail.com

unread,
Jan 2, 2019, 7:28:13 AM1/2/19
to
Hi Jaime,
I have seen the Hilbert marginal spectrum code in https://ch.mathworks.com/matlabcentral/fileexchange/27531-marginal-hilbert-spectrum

Does it calculate the Hilbert spectrum(Hilbert spectrum H(w,t) describes the variation of the signal amplitude with time and frequency in the whole frequency range) or Hilbert marginal spectrum( the marginal spectrum of h() reflects the signal amplitude changes with the frequency in the whole
frequency range, it also reflects the accumulation of amplitude
over the whole time span in a probabilistic sense) ?

and one more question, could you please explain what HS is as an input exactly?
Thanks
0 new messages