Calculate peak of pulses above certain threshold
Show older comments
Can you please guide how can I find the first peak of each pulse and its location. I use the peak command but peak time consider oscillations aslo. As seen in figure that each pulse decays in certain time. I just want to take in account the first rise of each pulse above any threshold value during a time duration 't' 

2 Comments
Mathieu NOE
on 10 May 2022
hello
there are quite a fair amount of answers to this topic on this forum
etc...
If you still think you need help , attach some data and your code
MANINDER CHOUDHARY
on 11 May 2022
Accepted Answer
More Answers (1)
load example.mat
%whos
plot(C(19e5:20e5));
% compute envelope before findpeaks
env = envelope(C, 1000, 'peak');
hold on
plot(env(19e5:20e5));
figure;
findpeaks(env); % doc findpeaks for more options
hold on;
plot(env)
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


