Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how i can solve it ??

1 visualización (últimos 30 días)
yasmeen hadadd
yasmeen hadadd el 22 de Ag. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello; I have this code :
Heart_pulse_avg =zeros(1,Lp_mean);
for m=1:L-2
Heart_pulse_arrays{m} = imresize(Heart_pulse_arrays{m}, [1 Lp_mean], 'bicubic');
Heart_pulse_arrays_values= Heart_pulse_arrays{m};
for n=1:length(Heart_pulse_arrays)-9
Heart_pulse_avg=mean(Heart_pulse_arrays_values(n:n+9));
end
Heart_pulse_avg_final=Heart_pulse_avg_values;
end
and this error : ??? Index exceeds matrix dimensions.
how i can solve it ?
  3 comentarios
per isakson
per isakson el 22 de Ag. de 2016
yasmeen hadadd
yasmeen hadadd el 22 de Ag. de 2016
Editada: per isakson el 22 de Ag. de 2016
[pks,locs] = findpeaks(ECG,'minpeakheight',mph);
L=length(locs);
for m=1:L-2
beat_rate(m) = 1/((locs(m+1)-locs(m))*T)*60;
Heart_pulse = ECG(locs(m):locs(m+1));
Heart_pulse_arrays{m} = Heart_pulse;
Lp(m)=length(Heart_pulse);
end
Lp_mean = round(mean(Lp));
heart_rate = round(mean(beat_rate)*10)/10;

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by