Join The Community

Premium WordPress Themes

Showing posts with label dsp. Show all posts
Showing posts with label dsp. Show all posts

Wednesday

Digital Signal Processing Lab Experiment

1) To synthesize the sequence x(n)=1,,1,2,2,3,3,2,1 for -2<=n<=5

Solution:
n=[-2:5];
x=[1,1,2,2,3,3,2,1];
plot(n,x,'o')
stem(n,x)

Write this on your MATLAB software and then you will see the graph.


2) To synthasize the expoonential impulse response x(n)=(0.9)^n for index values n=0,1,2, ..........,50

Solution:
n=[0:50];
x=(0.9).^n;
plot(n,x,'o')
grid

Write this on your MATLAB software and then you will see the graph.

Digital Signal Processing Lab Experiment 2

3) Superimposing two plots for comparison (N.B.- Problem 1 & 2)

Solution:
y=exp(-n/10);
plot(n,y,'+');
hold on
plot(n,x,'o');
hold off

Write this on your MATLAB software and then you will see the graph.



4) To generate a complex valued exponential sequence

Solution:
x=exp((2+3j)*n);
subplot(2,2,1)
plot(n,real(x),'o');
subplot(2,2,2);
plot(n,imag(x),'o');
subplot(2,2,3);
plot(n,abs(x),'o');

Write this on your MATLAB software and then you will see the graph.

Saturday

Another Boring Day

Today i passed a highly busy and boring day. I start my day at 7:30 am because my class started at 8:30. The subject was "Power & Industrial Electronics". Interesting subject but class time was 3 hr. This is really difficult to keep full concentration all the time. After that at 1-2:30 was the lab on that subject. Then another interesting & most important subject "Digital Signal Processing (DSP)" from 2:30 to 4:00 pm. So it was a busy day. Beside that all day in Dhaka see heavy rain full day. This make boring because i hate the dirty water, which was on the road.

Wednesday

Exp. no. 1 (DSP)

1)Name of exp.: Sinusoidal wave expression.
2)Theory: (N.B.: What is sine & cosine wave).
3)Program:
t=0:0.25:8*pi;
subplot(4,1,1);
plot(t,sin(t));
subplot(4,1,2)
plot(t,cos(t));
subplot(4,1,3)
x=sin(t)+.75*sin(3*t)+.5*sin(5*t)+.25*sin(7*t)+.125*sin(9*t);
plot(t,x);
subplot(4,1,4);
plot(t,x);
hold on;
plot(t,cos(t));
4)output:
5)Discussion: