Issue in table indexing
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Descriptive Statistics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!