AR coefficients ?
1 view (last 30 days)
Show older comments
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 .
0 Comments
Answers (1)
Walter Roberson
on 21 Oct 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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!