Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Finding max but when a condition becomes true it should find max two steps ahead

조회 수: 1 (최근 30일)
Sandeep Nair
Sandeep Nair 2020년 10월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
There is a signal with values suppose
A=[5,4,3,2,6,7,8,9]
The max of A goes back again and check the max with next one
So in the first step the max becomes 5 and when it again checks so with max (5,4) so it will return 5 again but when A becomes greater than max it should check max with the value of A two time steps ahead ie when A becomes 6 so max should remain 5 and it should two step ahead ie max(5,8) and it should return 8 but not before that
Could someone please help me in this in simulink.
Is there any way to do it?

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by