Signals Help Needed: Discrete Time Signal Shifting

  • Thread starter magneeto
  • Start date
  • Tags
    Signals
In summary, signals can be confusing because they have different notations for the same thing. With discrete time signals, the notation for taking future values of x(n) shifts the plot of the function to the right, while the notation for taking past values shifts the plot to the left.
  • #1
magneeto
6
0
signals...help needed

hi,

can anyone tell me why a discrete time signal x(n-k) where k>0 is shifted right along the X-axis(the time domain) and x(n+k) is shifted left. should'nt it be the reverse? this is for the graphical notation. but for the notation x(n)={...,0,3,2,1,0,1,2,3,0,...}
we go left for x(n-k) and go right for x(n+k) which is past samples and future samples respectively. the graphical and short hand notations are really contradictory to me. so pleasezzz help me:rolleyes:
 
Engineering news on Phys.org
  • #2
It's the same with continuous-time signals, and maybe a little more intuitive there. The -k or +k changes the argument to the function, so that the y value of the function takes on its value later or earlier than it would without the argument offset.

Take y=sin(x) and y=sin(x-a). Plot y=sin(x) and it crosses the x-axis as usual at x=0 and rising. Now set a=PI/4, so y=sin(x-PI/4). We know that sin()=0 when the argument to the sin() is 0, so sin(x-PI/4)=0 when x-PI/4=0, or x=PI/4. So now the first zero crossing of the plot has shifted to the *right* by PI/4, because the *argument* to the sin() function has been shifted to the left by PI/4. Shifting the argument to the function one way has the effect of shifting the plot of the function the other way.

Hope that helps. It always used to confuse me too, until I understood the difference between shifting the argument and shifting the function. -Mike-
 
  • #3
thanks mike. It's easy when u think about the shifting of sine fuctions. But for a discrete time signal x(n+k) means taking future values of x(n) (n is the sampling variable) whereas x(n-k) means taking past values. and when we plot such signals shouldn't it be that for x(n+k) we take the signal to the right and for x(n-k) we take it to the left? if I'm right we can think of n to be equivalent to the time domain. then n+k would go forward in time and this should take the signal to the right! it's still a bit confusing. but it takes the signal to the left :(
 
  • #4
No, the same thing applies to discrete signals. Plot some arbitraty y=x(n). Then plot y=x(n+1). The plot shifts to the left by one clock tick, because where n=0 used to give you the first value of y before, now x=-1 gives you the equivalent of the first value. The plot of y=x(n+1) thus looks like the plot of y=x(n), but shifted left in discrete time by one clock tick.
 
  • #5
OK :) now it's clear . thank's a lot
 

Related to Signals Help Needed: Discrete Time Signal Shifting

1. What is a discrete time signal?

A discrete time signal is a sequence of values that are only defined at distinct points in time. This means that the signal can only take on specific values at specific time intervals, rather than being continuous like an analog signal.

2. What does it mean to shift a discrete time signal?

Shifting a discrete time signal means to move the signal along the time axis. This can be done by adding or subtracting a constant value to each element in the signal, thus changing the time at which each value occurs.

3. Why would you need to shift a discrete time signal?

Shifting a signal can be useful for a variety of reasons. It can help align multiple signals for comparison, simplify calculations, or improve the visualization of the signal.

4. How do you shift a discrete time signal in MATLAB?

To shift a discrete time signal in MATLAB, you can use the circshift function. This function takes in the signal as the first argument, and the number of places to shift as the second argument. For example, to shift a signal x by 3 places, you would use circshift(x, 3).

5. What is the difference between shifting a signal to the left vs. to the right?

Shifting a signal to the left means to move the signal towards earlier time values, while shifting to the right means to move the signal towards later time values. This can be seen as a negative shift (left) or a positive shift (right) in MATLAB when using the circshift function.

Similar threads

  • Electrical Engineering
Replies
1
Views
1K
  • Electrical Engineering
Replies
0
Views
526
  • Electrical Engineering
Replies
3
Views
1K
  • Electrical Engineering
2
Replies
43
Views
4K
  • Electrical Engineering
2
Replies
41
Views
4K
  • Electrical Engineering
Replies
3
Views
890
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Programming and Computer Science
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
809
  • Electrical Engineering
Replies
27
Views
1K
Back
Top