Cepstrum Coefficient/Order Extraction
显示 更早的评论
I am trying to extract a “Cepstrum Coefficient” using the below code:
c = rceps(‘signal’); %computes the real part of the cepstrum
I am looking to extract the 4th order/co-efficient from the resulting Cepstrum to be specific.
Can you please advise on how I can get this done?
回答(1 个)
Binaya
2024-8-20
Hi Ejay
I believe you are trying to calculate the cepstral coefficients of the provided signal, specifically the 4th cepstral coefficient.
The link you have provided calculates the real cepstral transform of the signal using fourier transform. This is used for linear frequency spectrum analysis and can be used for checking the periodicity or presence of echoes in a signal.
The 4th cepstral co-efficient can be calculated using the "mfcc" function which estimates the Mel-frequency Cepstral Coefficients of a signal.
coeffs = mfcc(audioData);
coeff_4th = coeffs(K,4,1);
Here "K" refers to the Kth frame whose 4th cepstral coefficient you want to calculate and 1 defines the channel of the audio which you want to analyze.
For more details on how to use the "mfcc" and how to get the 4th cepstral coefficient you can refer to the following link: https://www.mathworks.com/help/audio/ref/mfcc.html
I hope this answers your query.
类别
在 帮助中心 和 File Exchange 中查找有关 Cepstral Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!