The art of delaying (discrete)

1 回表示 (過去 30 日間)
Greg
Greg 2013 年 3 月 8 日
Hi everyone
Simple newbi question on discrete signals. How can a discrete signal of sample time T can be delayed by a delay = T/4 ?
I am trying to use the delay block but I can only delay by an integer of the sample time. I am afraid my vision of "delay" is not correct.
Thank you very much for any kind of help on that.

採用された回答

Guy Rouleau
Guy Rouleau 2013 年 3 月 8 日
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 8 日
I was not aware of that. Good to know
Greg
Greg 2013 年 3 月 11 日
編集済み: Greg 2013 年 3 月 11 日
Hey! Thanks a lot for your answer, it seems it is exactly what I am looking for.
I just had some trouble until I realized that this option has to be unchecked into the Rate Transition block (!):
"Ensure deterministic data transfert (maximum delay)"
Thanks again Guy :-) !

サインインしてコメントする。

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 8 日
Set the sample time of your unit delay block to T/4, you will get a signal containing 4x number of original samples, delayed with T/4
  2 件のコメント
Greg
Greg 2013 年 3 月 8 日
Hi! Thanks for your answer! I just tried it, but unfortunately it is still delaying by T and not by a fraction of it.
Here is the test: I have a discrete signal of sample time = 1 seconde. And I am using a Unit Delay block with a specified value of 1/4 seconde.
Output: the first outputed value is zero until 1 second, and then it is outputting the input signal with a delay of 1 second.
I am doing something wrong?
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 8 日
Suppose you have signal y1 with sample time 1 ans time simulation is 0 to 10, that means you have 11 samples
When you pass a signal y1 through a unit delay block with T/4 you will get a signal y2 with 41 sample. which means:
The second sample of y1 corresponds to 1 sec
The second sample of y2 corresponds to 0.25 sec
If you want to check the result you should compare the signal y2 with the signal y3 which is obtained by passing y1 through a zoh block with sample time=T/4

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by