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?
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!