Moving window in simulink during simulation

조회 수: 2 (최근 30일)
John
John 2014년 6월 19일
댓글: Mohammad Wasi Ahmadi 2017년 7월 10일
I want to calculate the maximum value of a signal within a fixed window size of previous values. How can I do this in simulink? I need to use this calculation during the simulation, so post-processing the final data is not an option. Here is a screenshot to illustrate my question.
Thanks, John

답변 (1개)

Kaixiang Wang
Kaixiang Wang 2017년 3월 8일
Try DSP System Toolbox - Statistics - Moving Maximum. You may want to put a Abs block in front of it as well.
  댓글 수: 1
Mohammad Wasi Ahmadi
Mohammad Wasi Ahmadi 2017년 7월 10일
I used this block, however, before this I need to add a rate transition block to digitise the signal. but it still gives an error, asking me to add a signal specification block before it. do you know what should I put in signal spec block? Thanks, Wasi

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by