This website consists of all the information likes question papers, Q & A, programs etc for ECE Department engineering students.
Now here are some list of digital signal processing programs for 5th semester ECE dept engineering students.
5th semester
Program:%generation of the unit impulse signal:
t=-2:1:2;
y=[zeros(1,2),ones(1,1),zeros(1,2)];
subplot(2,2,1);
stem(t,y);
ylabel('amplitude-->');
xlabel('a(n)-->');
%generation of unit step signal:
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)-->');
%generation of ramp signal:
n1=input('enter the length of the sequence:');
t=0:n1;
subplot(2,2,3);
stem(t,t);
ylabel('amplitude-->');
xlabel('c(n)-->');
%generation of exponential signal:
n2=input('enter the length of exponential sequence:');
t=0:2:n2;
a=input('enter the a value');
y2=exp(a*t);
subplot(2,2,4);
stem(t,y2);
ylabel('amplitude-->');
xlabel('d(n)-->');
%generation of sine signal:
t=0:.01:pi;
y=sin(2*pi*t);
figure(2);
subplot(2,1,1);
plot(t,y);
ylabel('amplitude-->');
xlabel('d(n)-->');
%generation of cosine signal:
t=0:.01:pi;
y1=cos(2*pi*t);
subplot(2,1,2);
plot(t,y1);
ylabel('amplitude-->');
xlabel('e(n)-->
No comments:
Post a Comment