Please help me show this on matlab mt 1 when 0
Please help me show this on matlab
m(t) = 1; when 0<=t<=1
0, elsewhere.
Thank you
Please help me show this on matlab
m(t) = 1; when 0<=t<=1
0, elsewhere.
Thank you
m(t) = 1; when 0<=t<=1
0, elsewhere.
Thank you
Solution
1]% Continuous n=input(\'Enter the upper limit\'); t=0:n; m=[t>=0]; plot(t,m); title(\'Continuous\'); 2]%Discrete n1=input(\'Enter the lower limit\'); n2=input(\'Enter the upper limit\'); t=n1:n2; m=[n>=0]; stem(t,m); title(\'Discrete\');