Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo920306 committed Jun 3, 2024
0 parents commit 9881fec
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 0 deletions.
Binary file added README.md
Binary file not shown.
3 changes: 3 additions & 0 deletions c6_p28_a.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x = ones(1, 13);
X = fft(x)
stem(0:12, abs(X))
3 changes: 3 additions & 0 deletions c6_p28_b.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x = 0:10;
X = fft(x)
stem(x, abs(X))
4 changes: 4 additions & 0 deletions c6_p28_c.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
x = 1 ./ (0:10);
x(1) = 1;
X = fft(x)
stem(0:10, abs(X))
3 changes: 3 additions & 0 deletions c6_p28_d.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x = (0:10) .* (0.8 .^ (0:10));
X = fft(x)
stem(0:10, abs(X))
6 changes: 6 additions & 0 deletions c6_p29.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a = 0.75;
Omega = 0:0.01:6.3;
X = (1 - a ^ 2) ./ (1 - 2 * a * cos(Omega) + a ^ 2);
plot(Omega, abs(X));
xlabel('\Omega')
ylabel('X(\Omega)')
3 changes: 3 additions & 0 deletions c6_p30.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x = [1 2 0 -1 -2 1 5 4];
X = fft(x)
stem(abs(X))

0 comments on commit 9881fec

Please sign in to comment.