Program for the generation of unit step sequence [u(n)-u(n-N)] - Code

Latest

programs

Wednesday, December 7, 2011

Program for the generation of unit step sequence [u(n)-u(n-N)]


Unit Step Sequence: -

% Program for the generation of unit step sequence [u(n)-u(n-N)]
n=input ('Enter the N value');
t=0:1:n-1;
y1=ones(1,n);
subplot(2,2,2);
stem(t,y1);
ylabel('Amplitude-->');
xlabel('(b)n-->');


Output: -

Enter the N value4 


No comments:

Post a Comment