フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how i can solve it ??

2 ビュー (過去 30 日間)
yasmeen hadadd
yasmeen hadadd 2016 年 8 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
per isakson
per isakson 2016 年 8 月 22 日
yasmeen hadadd
yasmeen hadadd 2016 年 8 月 22 日
編集済み: per isakson 2016 年 8 月 22 日
[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;

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by