The art of delaying (discrete)

1 view (last 30 days)
Greg
Greg on 8 Mar 2013
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.

Accepted Answer

Guy Rouleau
Guy Rouleau on 8 Mar 2013
  2 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 8 Mar 2013
I was not aware of that. Good to know
Greg
Greg on 11 Mar 2013
Edited: Greg on 11 Mar 2013
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 :-) !

Sign in to comment.

More Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 8 Mar 2013
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 Comments
Greg
Greg on 8 Mar 2013
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 on 8 Mar 2013
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

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!