What is the difference between the sample-and-hold block and a delay?

조회 수: 5 (최근 30일)
DB
DB 2021년 1월 20일
댓글: DB 2021년 1월 27일
The sample and hold block holds a value for a certain time and outputs it.
A delay takes a previous value from a certain time ago and outputs it.
What are their theoretical and practical differences?

채택된 답변

Alan Moses
Alan Moses 2021년 1월 27일
The Sample and Hold block holds the acquired input value at the signal port whenever it receives a trigger event and outputs the value until the next triggering event occurs. The Delay block holds and delays its input by the sample time specified.
You may refer to the example in the simulink model attached where the outputs of both blocks can be viewed. The sample period of the Delay block is 0.1s and can be viewed by double-clicking the Delay block.
  댓글 수: 1
DB
DB 2021년 1월 27일
I already found out in the meantime but still thanks! Will vote for others to see.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by