How to hold a peak value from a fcn block

조회 수: 4 (최근 30일)
Richard
Richard 2014년 3월 14일
답변: Mischa Kim 2014년 3월 14일
I am trying to use a peak output value from a fcn block as an input to the fcn block, and I'm struggling.
I need to somehow have an input to the function that is the highest output value from all previous times. When a new maximum output value is calculated, I need the input to change to this value.
I have tried to use "Sample & Hold" and "Min/Max" but these have not worked...

답변 (1개)

Mischa Kim
Mischa Kim 2014년 3월 14일
Richard, use the minmax block (also allows you to reset). E.g.,

카테고리

Help CenterFile Exchange에서 String에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by