Final answer:
The plot of x[n]=u[n]−u[n−5] would be 1 for 0 <= n < 5 and 0 for n >= 5.
Step-by-step explanation:
The given function is x[n]=u[n]−u[n−5] where u[n] is the unit-step function. The unit-step function u[n] is defined as follows:
u[n] = 1 for n >= 0
u[n] = 0 for n < 0
Let's plot the given function step by step:
- For n < 0, x[n] = 0 as both u[0] and u[n-5] are 0.
- For 0 <= n < 5, x[n] = 1 - 0 = 1 as u[n] = 1 and u[n-5] = 0.
- For n >= 5, x[n] = 1 - 1 = 0 as both u[n] and u[n-5] are 1.
The plot of x[n]=u[n]−u[n−5] would be:
1 | -■■■■■
0 |■■■■■-----
+---------------------