Cepstrum Coefficient/Order Extraction

3 ビュー (過去 30 日間)
Ejay Nsugbe
Ejay Nsugbe 2019 年 10 月 7 日
回答済み: Binaya 2024 年 8 月 20 日
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
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.

Community Treasure Hunt

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

Start Hunting!

Translated by