Sunday, 28 October 2012

Program for Unit Step Signal

Here is a program for generation of Unit Step Signal in MAT LAB in continuous and discreet form.

open MAT LAB open new script and paste this program :-

Program :-

-----------------------------------------------------------------------------------------------------------------------

n=input('enter any integer value = ');
t=1
x=ones(t,n);
subplot(211);
plot(x);
ylabel('amp.');
xlabel('time');
title('cont. unit step signal');

subplot(212);
stem(x);
ylabel('amp.');
xlabel('time');
title('dis. unit step signal');

-----------------------------------------------------------------------------------------------------------------------

just paste the program, press run, enter the value of 'n' (numerical). get output :-

Output :-




IF YOU HAVE ANY QUERY THAN CONTACT US OR GIVE YOUR QUERY IN THE QUERY OPTION.      
                                                            GOOD LUCK

More embedded projects >>....                             More MAT LAB projects>>...

No comments: