This article is based on my answer to this question on dsp.stackexchange.com. There was also another question asking basically the same thing, so it seems that people get confused about the relation between time shifts and phase shifts for discrete-time signals.
First let's consider a continuous time sinusoidal signal:
x(t)=cos(ω0t)
Applying a time shift of t0 gives
x(t+t0)=cos(ω0(t+t0))=cos(ω0t+ω0t0)=cos(ω0t+ϕ)
with ϕ=ω0t0. So for a continuous-time sinusoidal signal a time shift always corresponds to a phase shift, but, more importantly, the opposite is also always true: a phase shift always corresponds to a time-shift. The time shift is given by
t0=ϕω0
With discrete-time signals, things are different. A time-shift always corresponds to a phase shift, but the opposite is generally not true. Let
x[n]=cos(nθ0)
Applying a time-shift of n0∈Z gives
x[n+n0]=cos((n+n0)θ0)=cos(nθ0+n0θ0)
which corresponds to a phase shift of ϕ=n0θ0. However, assume another signal
y[n]=cos(nθ0+ϕ),ϕ∈R
If n were a continuous variable, the signal y[n] could be obtained from x[n] by applying an appropriate time-shift. However, in discrete-time y[n] cannot generally be obtained by time-shifting x[n]. This is only possible if
ϕ=n0θ0
is satisfied for some integer n0. This can be seen as follows:
y[n]=cos(nθ0+ϕ)=cos((n+ϕ/θ0)θ0)
which only equals x[n+n0] if n0=ϕ/θ0 is an integer.
In sum, in continuous time a phase shift corresponds to a time shift and vice versa. In discrete-time, a time shift always corresponds to a phase shift, but the opposite is generally not true.
No comments:
Post a Comment