フィルターのクリア

AR coefficients ?

3 ビュー (過去 30 日間)
yasmeen hadadd
yasmeen hadadd 2011 年 10 月 21 日
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 .

回答 (1 件)

Walter Roberson
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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by