AR coefficients ?
조회 수: 4 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2011년 10월 21일
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!