Sliding window integrator in matlab code
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi, I want to implement sliding window integration using matlab code. I know its easy to implement in simulink(its taking large time due to large computation data). but i need this in matlab code. Can any one please provide hints how can i proceed. I have signal with pulse period of 5seconds and my signal is high from 2 to 3 sec.I want to integrate signal only during this period 2 to 3sec.
thank you. NTR
댓글 수: 0
답변 (1개)
Fangjun Jiang
2011년 11월 14일
The key function is conv().
댓글 수: 7
Fangjun Jiang
2011년 11월 15일
I don't understand what you are talking about. If signal=rand(6,1), selection=[0 0 1 1 0 0], then r=selection*signal is the same as above, the sum of the value at t==2 and t==3.
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!