AR coefficients ?

4 visualizzazioni (ultimi 30 giorni)
yasmeen hadadd
yasmeen hadadd il 21 Ott 2011
hi
I will calculated the AR coefficients for each beat of ECG signal form this code but i have an erorr
the code is :
coeffp = zeros(3,size(pvcbeats,2));
for cp = 1:size(pvcbeats,2)
coeffp(:,cp) = arburg(pvcbeats(:,cp),2) ;
end
for avp = 1:3
avgcoeffp(avp,1) = mean(coeffp(avp,1:length(coeffp)-1));
end
the error is :
??? Error using ==> arburg
Expected X to be nonempty.
Error in ==> arburg at 33
validateattributes(x,{'numeric'},{'nonempty','finite','vector'},'arburg','X');
please help me
thanks a lot .

Risposte (1)

Walter Roberson
Walter Roberson il 21 Ott 2011
That problem could happen if pvcbeats is a matrix whose first dimension is 0 but whose second dimension is non-zero. Try
size(pcvbeats)
to check

Community Treasure Hunt

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

Start Hunting!

Translated by