Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

$u[n]$ is the unit step function in discrete form. I want to know which one of the following two is the correct waveshape for $u[2-n]$, where $k$ is a constant.

What's the answer? The top one is $u[n]$, the unit step function. So, what's the graph for $u[2-n]$, middle or bottom?

enter image description here

share|improve this question
    
You know that $u[1]=1$ and $u[-1]=0$. Plug values of $n$ from your second and third axis so that the function argument is 1 and -1, and you'll see which one is right. – MBaz Jan 25 at 3:08
    
The second one is the right one -(n-2) = 2-n – Moti Jan 25 at 6:12

HINT: For which value of $n$ does the argument of $u[2-n]$ become zero? That's where the step occurs. For which values of $n$ is the argument non-negative? That's where your unit step equals $1$. If you think about it for a minute, it should become really easy.

share|improve this answer
    
Really?????????????? Need 15 characters... – Moti Jan 26 at 1:26
    
@Moti: My comment was a reaction to your statement that the "second one" is the correct solution. I thought you meant the second of the two "solutions" (i.e. the last figure), so I thought you might want to reconsider your comment. Now I realize that you meant the first solution, i.e. the second figure from top, which is of course correct. – Matt L. Jan 26 at 7:46

Basically, discrete unit step signal may be defined as: $$u[n] = \begin{cases} \begin{align} &1 &\scriptstyle{\text{for n > 0}}\\ &0 &\scriptstyle{\text{for n < 0}}\\ \end{align} \end{cases}$$ Doing time reversing (inverse) $$u[-n] = \begin{cases} \begin{align} &1 &\scriptstyle{\text{for -n > 0}}\\ &0 &\scriptstyle{\text{for -n < 0}}\\ \end{align} \end{cases}$$ $$u[-n] = \begin{cases} \begin{align} &1 &\scriptstyle{\text{for n < 0}}\\ &0 &\scriptstyle{\text{for n > 0}}\\ \end{align} \end{cases}$$ Now doing shifting by (+2) $$u[-n+2]=u[2-n] = \begin{cases} \begin{align} &1 &\scriptstyle{\text{for n < 2}}\\ &0 &\scriptstyle{\text{for n > 2}}\\ \end{align} \end{cases}$$ $Which\ gives\ you\ the\ second\ signal\ you\ stated\ in\ your\ question$

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.