How to create a rectangular pulse train of amplitude '1' with user-defined time period?

2 次查看(过去 30 天)
Hai, I am actually working on the processing of Electrocardiogram (ECG) signal. I need to detect the R-peaks from the processed signal by multiplying by a rectangular pulse train. How can I create the train with some definite time period?

采纳的回答

Bjorn Gustavsson
Bjorn Gustavsson 2022-7-5
You should be able to do that with the square function, check its help and documentation. You might need to add 1 and divide by to and use some duty-cycle-parameter and phase-shift to get what you really want, but start with square.
HTH

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Measurements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by