continuous signal delay
1 回表示 (過去 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!