How can I calculate Kurtosis of Sound data?
1 view (last 30 days)
Show older comments
Serhat Sayim on 3 Jan 2021
Commented: dpb on 3 Jan 2021
I have sound data of people who have asthma.I made separate plots windows thanks to the start and end indexes of wheezing and non-wheezing sounds. How can I calculate the kurtosis value of each wheeze or nonwheeze windows.
wheezing starting indexes
wheezing ending indexes
Star Strider on 3 Jan 2021
Not certain what you want.
startidx = [2239
endidx = [3239
framelen = endidx - startidx;
fl_mean = mean(framelen);
fl_varv = var(framelen);
fl_kurt = kurtosis(framelen);
That's not the code I gave you...just plug your variables in where I told you:
Use whatever is your array/variable name for the data in place of "X". You plotted the data so you have the variable already, use it again.
More Answers (1)
where X are your data and the two indexing arrays above for the "in group" sections.
The "out group" indices can be derived from the above in group values by adjustment of point numbers by one and adding the first, last points of the X vector. The same logic/functional form will then work for those sections.
Will leave as "exercise for Student" to consider the details...
Find more on Signal Attributes and Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!