Issue in table indexing
显示 更早的评论
I have a table with 5 columns and 100000 values (ECG and PPG signals). I need to find peaks of the signal starting from a value on the x axis (x_ECG_IV(i)) inside a range of 40 values. My idea is to use a for loop like this:
for i=1:length(peaks_ECG_IV)
A=x_ECG_IV(i) - 20*Tc :Tc: x_ECG_IV(i) + 20*Tc;
if x_ECG_IV(i) + 20*Tc < x_ECG_IV(length(peaks_ECG_IV)) && x_ECG_IV(i) - 20*Tc > x_ECG_IV(1)
[y_i,x_i] = findpeaks(DatiECGPPG.ECGLeadIV,A);
end
The problem is that A, array of 40(41 actually) values in which i need to find the peak for each x_ECG_IV(i), has not the same dimension of "DatiECGPPG.ECGLeadIV", which is the whole signal. How can i find the corresponding y value to the A interval?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!