Google Search

Wednesday, December 7, 2011

DSP Program for the generation of exponential sequence


Exponential Sequence: -
         
% Program for the generation of exponential sequence
n2=input ('Enter the length of exponential sequence');
t=0:n2;
a=input('Enter the (a) value');
y2=exp(a*t);
subplot(2,2,4);
stem(t,y2);
ylabel('Amplitude-->');
xlabel('(d)n-->');

Output: -

Enter the length of exponential sequence4
Enter the (a) value2
y2=exp(a*t);
subplot(2,2,4); 
                              stem(t,t);
ylabel('Amplitude-->');
xlabel('(c)n-->');

Output: -

Enter the length of rampsequence4 


0 comments:

Post a Comment