plotting discrete time signals
Show older comments
I'm trying to plot a discrete time signal with a step function from -5 to 5 I am trying to use the heaviside() function but keep getting errors. Can anyone tell me why this is invalid matlab syntax?
n = [-5 -4 -3 -2 -1 0 1 2 3 4 5];
f_one = 2*(0.5)^.n * heaviside(n.+2)
Accepted Answer
More Answers (2)
William
on 11 Sep 2013
0 votes
aswathy subash
on 1 May 2019
0 votes
matlab program for to sketch magnitude and phase spectrum of discrete time system H(e^jw)=(1-e^(-3jw))/3(1-e(-jw) )
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!