2:18 AM

unit step sequence

here's another one

function usts()
f=input('enter the sampling frequency= ');
l=input('enter the length of the sequence= ');

Ts=1/f;
n=1:l;
x(n)=ones(1,numel(l));
n=0:l-1;
stem(n*Ts,x,'fill');
title('unit step sequence');    
xlabel('time in secs');
ylabel('amplitude');
  
PLEASE LEAVE A COMMENT :)

0 comments:

Post a Comment