continuous signal delay

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.

回答(3 个)

Kaustubha Govind
Kaustubha Govind 2012-6-6

2 个投票

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).
mado
mado 2012-6-6

0 个投票

but this unit delay is for digital and my signal is analog

2 个评论

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.
Perhaps you need the Transport Delay block? http://www.mathworks.com/help/toolbox/simulink/slref/transportdelay.html

请先登录,再进行评论。

mado
mado 2012-6-7

0 个投票

I tried transport delay but the output of this block is zero , i don't know why

2 个评论

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.
thanks , its working

请先登录,再进行评论。

标签

提问:

2012-6-6

Community Treasure Hunt

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

Start Hunting!

Translated by