I wish to detect heart rates using the Discrete Cosine transform

1 visualización (últimos 30 días)
Tazen Moushumi
Tazen Moushumi el 9 de Abr. de 2021
Editada: Tazen Moushumi el 15 de Abr. de 2021
Getting below error. Why doesn't this method work? Help me for solving this error
Array indices must be positive integers or logical values.
Error in Body_Motion (line 110)
Xdct(k+1) = Xdct(k+1)+ 2*err-frame_length(n1) .* cos(2*pi*k*n1/M);
----------------------------------------------------------
frame_length = 500;
period = 50;
M=2^13;
Xdct =zeros(1,M);
err-frame_length == 1:fix((SAMPLE-frame_length) / period)+1;
for k = 0:1:M-1
for n1 = 0:SAMPLE-1
Xdct(k+1) = Xdct(k+1)+ 2*err-frame_length(n1) .* cos(2*pi*k*n1/M);
end
end

Respuestas (0)

Categorías

Más información sobre Cardiology en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by