Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

x=[1 1 1 1]

y=fft(x)
stem(abs(y))

10

15

20

25

30

x1=[1 1 1 1 zeros(1,25)]
stem(abs(fft(x1)))
4
3.5
3
2.5
2
1.5
1
0.5
0

x2=[1 1 1 1 zeros(1,100)]
stem(abs(fft(x2)))

10

20

30

40

50

60

70

80

90

100

60

80

100

120

140

160

180

200

x2=[1 1 1 1 zeros(1,200)]
stem(abs(fft(x2)))

20

40

You might also like