What is the difference between the sample-and-hold block and a delay?
5 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Block Libraries 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!