how to add delay to a signal
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi
I have a small query. Can you help me to add delay to a signal s=randn(1,100);
But the delay is given in time domain, as x(t)=s(t-D), where I am assuming s=randn(1,100) to be discrete
Please
Thanks
P
4 Kommentare
Walter Roberson
am 17 Jan. 2012
I did not say it was a duplicate, I said it closely related. It provides context for this question, which is not exactly the same.
Antworten (3)
Honglei Chen
am 17 Jan. 2012
If your D is an integer multiple of the sampling frequency, then all you need to do is adding 0 in front of the signal. However, if D is not an integer multiple of the sampling frequency, then in addition to the zero prefixing, you also need to apply a fractional delay filter to the signal.
doc fdesign.fracdelay
2 Kommentare
Walter Roberson
am 17 Jan. 2012
s = randn(1,100)
will only be discrete down to the level of the distance between representable binary floating point numbers. In particular, if I recall correctly, it is not restricted to being an integer multiple of 2^(-53) the way that the uniform random generator is. Unfortunately this is a point I have been unable to find documented in any current release (since RandStream was introduced, the documentation about what the random number generators' output has gone downhill, in my opinion.)
0 Kommentare
Walter Roberson
am 18 Jan. 2012
I looked around the 'net to find the definition of broadband signal. I found that the term does not have any specific meanings -- e.g., there is no limit point such as (to make up a figure) 8.46 megahertz above which the signal is considered "broadband".
The definitions I found were in terms of whether the signal exceeded the bandwidth of whatever filter was in place.
With that definition, I would be forced to say that unless one was given external information about the filter being used, that any signal defined by its samples and signal sampled to a finite time would have to be considered to be sampled to the Nyquist Frequency, that the Nyquist Frequency could be considered the filter bandwidth, and thus that unless given that external information, any signal defined by its samples and sampled to a finite time would, by definition, be not a broadband signal.
A statement that a signal was periodic would imply that there is a "true" signal beyond what was sampled and so that the signal was not defined by its samples and so might potentially be broadband. But not every signal defined as periodic but finitely sampled is broadband; for example a sine wave is not broadband.
Knowing that signals are pulses or square-waves or triangle waves are examples of signals for which there is a "true" signal beyond what was sampled (they require infinite bandwidth), and yet clearly such signals need not be periodic.
So again: if you are given a filter bandwidth, or if you are given a knowledge that a signal has information beyond what was sampled, then you might be dealing with a broadband signal. But if the signal is defined by a finite list of samples (such as your signal is) then the definition of "broadband" appears to me to indicate that such a signal could never be considered broadband.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!