标签: matlab matlab-figure
我发现了峰顶和峰顶之间的距离
figure(2); [PKS,LOCS] = findpeaks(PPG); plot(t,PPG,'b-',t(LOCS),PPG(LOCS),'ro','LineWidth',2); grid on; xlabel('Tiempo (seg)'); ylabel('PPG'); meanCycle = mean(diff(LOCS))
图:enter image description here