I Need urgent Matlab help

Thread Starter

abc001

Joined Sep 23, 2008
1
Hello all

I need to plot the following, I have tried but didn't work!

Unit rectangular pulse sequence:
a)
x=P(n)=
1 : 0≤n≥10
0 : n<0 or n>10
b)
x=P(n) = P(n+5)

Construct and plot the sequences above for -10<n<39

(Hints: The unit pulse sequence can be related to the unit step by
Pk(n)=u(n)-u(n-(k+1))
or can be constructed logically by
Pk = ((n >= 0)&(n <= k)). )

Can you please provide me with the code to achieve the above...

Thanks
 
Top