Sie sind auf Seite 1von 5

Signal analysis and processing

DA1
Name:S.Vigneshwaran
Reg No:16BIS0152
4)
a)

Procedure
a) On putting k values from 0 to 3 we see that there is a gp
getting formed
b) Creating a array of 0 for the finite size of 100 here
c) Changing the value of the 3rd term from the starting of the
array to (-0.9)^a where a is the number of the iteration
d) Plot the stem for the output
Code
clc
clear all
clear vars
n=0:1:99
s=zeros(100)
a=0;
for i=0:3:100
s(i+1)=(-0.9)^a;
a=a+1;
end
stem(n,s);
Simulation

Inference

The graph is ploted for the given function

4)
b)

Procedure
a)Given system is converted into the frequency domain so as to
implement the relation H(jw)
b)find the H(jw) manually
c)create a array of size here is 50
d)find the inverse fourier transform therefore to obtain the
output value ifft command
e)plot the h(n)
Code
n=1:50;
y=zeros(1,50);
i=1;
for q=0.1:0.1:5
y(i)=ifft(exp(-5*j*2*pi*q)+0.5*exp(-7*j*2*pi*q));
i=i+1;
end
y
stem(n,y);

Simulation
y=

Columns 1 through 4

-1.1545 + 0.4755i 0.5955 - 0.2939i -0.5955 - 0.2939i 1.1545 + 0.4755i

Columns 5 through 8

-1.5000 - 0.0000i 1.1545 - 0.4755i -0.5955 + 0.2939i 0.5955 + 0.2939i

Columns 9 through 12

-1.1545 - 0.4755i 1.5000 + 0.0000i -1.1545 + 0.4755i 0.5955 - 0.2939i

Columns 13 through 16

-0.5955 - 0.2939i 1.1545 + 0.4755i -1.5000 + 0.0000i 1.1545 - 0.4755i

Columns 17 through 20

-0.5955 + 0.2939i 0.5955 + 0.2939i -1.1545 - 0.4755i 1.5000 + 0.0000i

Columns 21 through 24

-1.1545 + 0.4755i 0.5955 - 0.2939i -0.5955 - 0.2939i 1.1545 + 0.4755i

Columns 25 through 28

-1.5000 + 0.0000i 1.1545 - 0.4755i -0.5955 + 0.2939i 0.5955 + 0.2939i

Columns 29 through 32

-1.1545 - 0.4755i 1.5000 - 0.0000i -1.1545 + 0.4755i 0.5955 - 0.2939i


Columns 33 through 36

-0.5955 - 0.2939i 1.1545 + 0.4755i -1.5000 + 0.0000i 1.1545 - 0.4755i

Columns 37 through 40

-0.5955 + 0.2939i 0.5955 + 0.2939i -1.1545 - 0.4755i 1.5000 + 0.0000i

Columns 41 through 44

-1.1545 + 0.4755i 0.5955 - 0.2939i -0.5955 - 0.2939i 1.1545 + 0.4755i

Columns 45 through 48

-1.5000 - 0.0000i 1.1545 - 0.4755i -0.5955 + 0.2939i 0.5955 + 0.2939i

Columns 49 through 50

-1.1545 - 0.4755i 1.5000 + 0.0000i

Warning: Using only the real component of complex data.


Inference: Given LTI system is converted to frequency domain, system response is found out
and converted back to time domain. Graph of the response is plot.

Das könnte Ihnen auch gefallen