Applying Unit Step to discrete signal

I have x(n) = {0,0,1,1,1,1,.5,.5,0,0}. I need to plot the signal x(n)u(2-n) in MATLAB. I don't know how to enter in unit functions.

Answers (1)

Asked:

on 24 Feb 2016

Edited:

on 24 Feb 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!