필터 지우기
필터 지우기

How to determine if a signal in Simulink is within upper and lower limit bounds over a specified number of samples?

조회 수: 4 (최근 30일)
I want to monitor a signal in Simulink and output a boolean when the signal is within specified upper and lower limits for a specified number of samples. This is something similar to the Interval Test block, but for a given number of samples.

채택된 답변

Paul
Paul 2021년 6월 26일
편집: Paul 2021년 6월 26일
I'm going to assume that the signal in question is already sampled. Here's one approach. There are others.
Input the signal to a Tapped Delay block, which will output the moving vector of samples. Be mindful of the Initial Condition parameter.
The output of the Tapped Delay is input to the Interval Test for comparison of each sample.
The output of the Interval Test is input to Logical Operator with a single input and set to AND.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Test Model Components에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by