Bonjour,

J'ai un souci avec la fonction cceps; lorsque je tape le code suivant:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
[s1, fs]=wavread('5.wav');
fs
s1 = resample(s1, fs/3, fs);
h=length(s1)
X=precut(s1);
n=length(X)
 
 
 
for j=1:40
 
 
    NB=[X{j}];
%     NB=NB(1,:);
    c = cceps(NB);
    [xh,nd] = cceps(NB);    %Cepstrum analysis
 
    figure(4)
    subplot(40,1,j)
    plot(NB)
    grid
 
    figure(5)
    subplot(40,1,j)
    plot(xh)
    grid
J'obtiens:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
??? Attempted to access y(1); index out of bounds because numel(y)=0.
 
Error in ==> <a href="error:C:\MATLAB7\toolbox\signal\signal\cceps.m,78,1">cceps>rcunwrap at 78</a>
nd = round(y(nh+1)/pi);
 
Error in ==> cceps at 36
[ah,nd] = rcunwrap(angle(h));
 
Error in ==> cepstral at 40
    c = cceps(NB);
Si quelqu'un voit où est l'erreur ou peut me conseiller, je serais reconnaissant!

Merci!

François