close all;
clc;
t=0:1:19;
y1=ones(1,20); %unit step
subplot(2,1,1);
stem(t,y1);
title('unit stem function');
xlabel(' time ');
ylabel(' unit function ');
y2=[zeros(1,10) ones(1,10)];
subplot(2,1,2);
stem(t,y2);
title('unit stem function');
xlabel(' time ');
ylabel(' unit function ');





0 comments