continuous signal delay
조회 수: 2 (최근 30일)
이전 댓글 표시
I have continuous signal generated from simulink and i want to make dp = p(k)-p(k-1) where p(k) is the current and p(k-1) is the last value from last reading of simulink.
댓글 수: 0
답변 (3개)
Kaustubha Govind
2012년 6월 6일
Feed p(k) into the Unit Delay block to get p(k-1) and subtract the latter from the former to get p(k)-p(k-1).
댓글 수: 0
mado
2012년 6월 6일
댓글 수: 2
Kaustubha Govind
2012년 6월 7일
Did you mean to say that Unit Delay is a discrete-time block? Yes, but in your question, you said you need p(k-1), which is a discrete-time representation.
Kaustubha Govind
2012년 6월 7일
Perhaps you need the Transport Delay block? http://www.mathworks.com/help/toolbox/simulink/slref/transportdelay.html
mado
2012년 6월 7일
댓글 수: 2
Kaustubha Govind
2012년 6월 8일
It is probably zero for the length of the delay that you've specified. Increase the simulation stop time to see if the delayed signal is eventually displayed.
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!