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!