fork download
  1. fprintf('Thiết kế bộ lọc thông cao dùng phương pháp lấy mẫu tần số \n');
  2. fprintf('Nhập thông số bộ lọc \n');
  3. M = input('Số mẫu: '); % Số mẫu
  4. Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
  5. fprintf('Tần số của tín hiệu sin cần lọc \n');
  6. f1 = input('Tần số thứ nhất: ');
  7. f2 = input('Tần số thứ hai: ');
  8. f3 = input('Tần số thứ ba: ');
  9. fs = 2000; % Tần số lấy mẫu
  10. m = 0:M/2; % Các điểm lấy mẫu
  11. Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
  12. mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
  13. Ad = Wm >= Wp;
  14. Ad(mtr) = 0.28;
  15. Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
  16. Hd = [Hd conj(fliplr(Hd(2:M/2+1)))];
  17. %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
  18. h = real(ifft(Hd)); % h(n) = IDFT[H(k)]
  19. w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
  20. H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
  21. figure(1)
  22. plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
  23. xlabel('Tần số chuẩn hóa'); ylabel('G Gain/dB'); title('Phản ứng biên độ của bộ lọc thông cao');
  24. axis([0 1 -50 0]);
  25. figure(2)
  26. subplot(211)
  27. t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
  28. s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
  29. plot(t, s); % Đồ thị trước khi lọc
  30. xlabel('Thời gian/s'); ylabel('Biên độ'); title('Đồ thị miền thời gian trước khi lọc');
  31. subplot(212)
  32. Fs = fft(s, 512); % Biến đổi sang miền tần số
  33. AFs = abs(Fs); % Biên độ
  34. f = (0:255) * fs / 512; % Lấy mẫu tần số
  35. plot(f, AFs(1:256)); % Đồ thị miền tần số trước khi lọc
  36. xlabel('Tần số/Hz'); ylabel('Biên độ'); title('Đồ thị miền tần số trước khi lọc');
  37. figure(3)
  38. sf = filter(h, 1, s); % Sử dụng hàm filter
  39. subplot(211)
  40. plot(t, sf) % Đồ thị sau khi lọc
  41. xlabel('Thời gian/s'); ylabel('Biên độ'); title('Đồ thị miền thời gian sau khi lọc')
  42. axis([0.2 0.25 -2 2]); % Đặt phạm vi tọa độ của hình ảnh
  43. subplot(212)
  44. Fsf = fft(sf, 512); AFsf = abs(Fsf);
  45. f = (0:255) * fs / 512; % Lấy mẫu tần số
  46. plot(f, AFsf(1:256)) % Đồ thị miền tần số sau khi lọc
  47. xlabel('Tần số/Hz'); ylabel('Biên độ'); title('Đồ thị miền tần số sau khi lọc');
  48.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:9: warning: character constant too long for its type
 fprintf('Thiết kế bộ lọc thông cao dùng phương pháp lấy mẫu tần số \n');
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:1:9: error: expected declaration specifiers or ‘...’ before '\xbb91200a'
prog.c:2:9: warning: character constant too long for its type
 fprintf('Nhập thông số bộ lọc \n');
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:2:9: error: expected declaration specifiers or ‘...’ before '\x8d63200a'
prog.c:3:1: warning: data definition has no type or storage class
 M = input('Số mẫu: '); % Số mẫu
 ^
prog.c:3:1: warning: type defaults to ‘int’ in declaration of ‘M’ [-Wimplicit-int]
prog.c:3:5: warning: implicit declaration of function ‘input’ [-Wimplicit-function-declaration]
 M = input('Số mẫu: '); % Số mẫu
     ^~~~~
prog.c:3:11: warning: character constant too long for its type
 M = input('Số mẫu: '); % Số mẫu
           ^~~~~~~~~~~~~~
prog.c:3:5: error: initializer element is not constant
 M = input('Số mẫu: '); % Số mẫu
     ^~~~~
prog.c:3:28: error: expected identifier or ‘(’ before ‘%’ token
 M = input('Số mẫu: '); % Số mẫu
                            ^
prog.c:3:31: error: stray ‘\341’ in program
 M = input('Số mẫu: '); % Số mẫu
                               ^
prog.c:3:32: error: stray ‘\273’ in program
 M = input('Số mẫu: '); % Số mẫu
                                ^
prog.c:3:33: error: stray ‘\221’ in program
 M = input('Số mẫu: '); % Số mẫu
                                 ^
prog.c:3:36: error: stray ‘\341’ in program
 M = input('Số mẫu: '); % Số mẫu
                                    ^
prog.c:3:37: error: stray ‘\272’ in program
 M = input('Số mẫu: '); % Số mẫu
                                     ^
prog.c:3:38: error: stray ‘\253’ in program
 M = input('Số mẫu: '); % Số mẫu
                                      ^
prog.c:4:12: warning: character constant too long for its type
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:4:50: error: expected identifier or ‘(’ before ‘%’ token
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                  ^
prog.c:4:53: error: stray ‘\341’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                     ^
prog.c:4:54: error: stray ‘\272’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                      ^
prog.c:4:55: error: stray ‘\247’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                       ^
prog.c:4:59: error: stray ‘\341’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                           ^
prog.c:4:60: error: stray ‘\273’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                            ^
prog.c:4:61: error: stray ‘\221’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                             ^
prog.c:4:64: error: stray ‘\341’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                ^
prog.c:4:65: error: stray ‘\272’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                 ^
prog.c:4:66: error: stray ‘\257’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                  ^
prog.c:4:70: error: stray ‘\341’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                      ^
prog.c:4:71: error: stray ‘\272’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                       ^
prog.c:4:72: error: stray ‘\243’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                        ^
prog.c:4:79: error: stray ‘\341’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                               ^
prog.c:4:80: error: stray ‘\273’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                                ^
prog.c:4:81: error: stray ‘\201’ in program
 Wp = input('Tần số cắt dải truyền: '); % Tần số cắt dải truyền
                                                                                 ^
prog.c:5:9: warning: character constant too long for its type
 fprintf('Tần số của tín hiệu sin cần lọc \n');
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:6:1: warning: data definition has no type or storage class
 f1 = input('Tần số thứ nhất: ');
 ^~
prog.c:6:1: warning: type defaults to ‘int’ in declaration of ‘f1’ [-Wimplicit-int]
prog.c:6:12: warning: character constant too long for its type
 f1 = input('Tần số thứ nhất: ');
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:6:6: error: initializer element is not constant
 f1 = input('Tần số thứ nhất: ');
      ^~~~~
prog.c:7:1: warning: data definition has no type or storage class
 f2 = input('Tần số thứ hai: ');
 ^~
prog.c:7:1: warning: type defaults to ‘int’ in declaration of ‘f2’ [-Wimplicit-int]
prog.c:7:12: warning: character constant too long for its type
 f2 = input('Tần số thứ hai: ');
            ^~~~~~~~~~~~~~~~~~~~~~~~
prog.c:7:6: error: initializer element is not constant
 f2 = input('Tần số thứ hai: ');
      ^~~~~
prog.c:8:1: warning: data definition has no type or storage class
 f3 = input('Tần số thứ ba: ');
 ^~
prog.c:8:1: warning: type defaults to ‘int’ in declaration of ‘f3’ [-Wimplicit-int]
prog.c:8:12: warning: character constant too long for its type
 f3 = input('Tần số thứ ba: ');
            ^~~~~~~~~~~~~~~~~~~~~~~
prog.c:8:6: error: initializer element is not constant
 f3 = input('Tần số thứ ba: ');
      ^~~~~
prog.c:9:1: warning: data definition has no type or storage class
 fs = 2000; % Tần số lấy mẫu
 ^~
prog.c:9:1: warning: type defaults to ‘int’ in declaration of ‘fs’ [-Wimplicit-int]
prog.c:9:12: error: expected identifier or ‘(’ before ‘%’ token
 fs = 2000; % Tần số lấy mẫu
            ^
prog.c:9:15: error: stray ‘\341’ in program
 fs = 2000; % Tần số lấy mẫu
               ^
prog.c:9:16: error: stray ‘\272’ in program
 fs = 2000; % Tần số lấy mẫu
                ^
prog.c:9:17: error: stray ‘\247’ in program
 fs = 2000; % Tần số lấy mẫu
                 ^
prog.c:9:21: error: stray ‘\341’ in program
 fs = 2000; % Tần số lấy mẫu
                     ^
prog.c:9:22: error: stray ‘\273’ in program
 fs = 2000; % Tần số lấy mẫu
                      ^
prog.c:9:23: error: stray ‘\221’ in program
 fs = 2000; % Tần số lấy mẫu
                       ^
prog.c:9:26: error: stray ‘\341’ in program
 fs = 2000; % Tần số lấy mẫu
                          ^
prog.c:9:27: error: stray ‘\272’ in program
 fs = 2000; % Tần số lấy mẫu
                           ^
prog.c:9:28: error: stray ‘\245’ in program
 fs = 2000; % Tần số lấy mẫu
                            ^
prog.c:9:32: error: stray ‘\341’ in program
 fs = 2000; % Tần số lấy mẫu
                                ^
prog.c:9:33: error: stray ‘\272’ in program
 fs = 2000; % Tần số lấy mẫu
                                 ^
prog.c:9:34: error: stray ‘\253’ in program
 fs = 2000; % Tần số lấy mẫu
                                  ^
prog.c:10:12: error: expected identifier or ‘(’ before ‘%’ token
 m = 0:M/2; % Các điểm lấy mẫu
            ^
prog.c:10:15: error: stray ‘\303’ in program
 m = 0:M/2; % Các điểm lấy mẫu
               ^
prog.c:10:16: error: stray ‘\241’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                ^
prog.c:10:19: error: stray ‘\304’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                   ^
prog.c:10:20: error: stray ‘\221’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                    ^
prog.c:10:22: error: stray ‘\341’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                      ^
prog.c:10:23: error: stray ‘\273’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                       ^
prog.c:10:24: error: stray ‘\203’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                        ^
prog.c:10:28: error: stray ‘\341’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                            ^
prog.c:10:29: error: stray ‘\272’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                             ^
prog.c:10:30: error: stray ‘\245’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                              ^
prog.c:10:34: error: stray ‘\341’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                                  ^
prog.c:10:35: error: stray ‘\272’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                                   ^
prog.c:10:36: error: stray ‘\253’ in program
 m = 0:M/2; % Các điểm lấy mẫu
                                    ^
prog.c:11:28: error: expected identifier or ‘(’ before ‘%’ token
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                            ^
prog.c:11:31: error: stray ‘\341’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                               ^
prog.c:11:32: error: stray ‘\272’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                ^
prog.c:11:33: error: stray ‘\247’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                 ^
prog.c:11:37: error: stray ‘\341’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                     ^
prog.c:11:38: error: stray ‘\273’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                      ^
prog.c:11:39: error: stray ‘\221’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                       ^
prog.c:11:42: error: stray ‘\341’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                          ^
prog.c:11:43: error: stray ‘\272’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                           ^
prog.c:11:44: error: stray ‘\257’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                            ^
prog.c:11:48: error: stray ‘\341’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                                ^
prog.c:11:49: error: stray ‘\272’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                                 ^
prog.c:11:50: error: stray ‘\243’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                                  ^
prog.c:11:55: error: stray ‘\341’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                                       ^
prog.c:11:56: error: stray ‘\272’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                                        ^
prog.c:11:57: error: stray ‘\267’ in program
 Wm = 2 * pi * m / (M + 1); % Tần số cắt dải chặn
                                                         ^
prog.c:12:38: error: expected identifier or ‘(’ before ‘%’ token
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                      ^
prog.c:12:41: error: stray ‘\303’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                         ^
prog.c:12:42: error: stray ‘\240’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                          ^
prog.c:12:47: error: stray ‘\303’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                               ^
prog.c:12:48: error: stray ‘\262’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                ^
prog.c:12:53: error: stray ‘\341’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                     ^
prog.c:12:54: error: stray ‘\272’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                      ^
prog.c:12:55: error: stray ‘\247’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                       ^
prog.c:12:59: error: stray ‘\306’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                           ^
prog.c:12:60: error: stray ‘\260’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                            ^
prog.c:12:61: error: stray ‘\306’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                             ^
prog.c:12:62: error: stray ‘\241’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                              ^
prog.c:12:68: error: stray ‘\341’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                                    ^
prog.c:12:69: error: stray ‘\273’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                                     ^
prog.c:12:70: error: stray ‘\251’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                                      ^
prog.c:12:74: error: stray ‘\303’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                                          ^
prog.c:12:75: error: stray ‘\240’ in program
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                                           ^
prog.c:12:97: error: expected declaration specifiers or ‘...’ before ‘-’ token
 mtr = ceil(Wp * (M + 1) / (2 * pi)); % Làm tròn phần dương, tức là ceil(3.5) = 4; ceil(-3.2) = -3;
                                                                                                 ^
prog.c:13:1: warning: data definition has no type or storage class
 Ad = Wm >= Wp;
 ^~
prog.c:13:1: warning: type defaults to ‘int’ in declaration of ‘Ad’ [-Wimplicit-int]
prog.c:13:6: error: ‘Wm’ undeclared here (not in a function)
 Ad = Wm >= Wp;
      ^~
prog.c:13:12: error: ‘Wp’ undeclared here (not in a function)
 Ad = Wm >= Wp;
            ^~
prog.c:14:1: warning: data definition has no type or storage class
 Ad(mtr) = 0.28;
 ^~
prog.c:14:1: warning: type defaults to ‘int’ in declaration of ‘Ad’ [-Wimplicit-int]
prog.c:14:1: warning: parameter names (without types) in function declaration
prog.c:14:1: error: function ‘Ad’ is initialized like a variable
prog.c:14:1: error: ‘Ad’ redeclared as different kind of symbol
prog.c:13:1: note: previous definition of ‘Ad’ was here
 Ad = Wm >= Wp;
 ^~
prog.c:15:1: warning: data definition has no type or storage class
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
 ^~
prog.c:15:1: warning: type defaults to ‘int’ in declaration of ‘Hd’ [-Wimplicit-int]
prog.c:15:10: error: expected identifier before ‘*’ token
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
          ^
prog.c:15:37: error: expected identifier or ‘(’ before ‘%’ token
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                     ^
prog.c:15:39: error: stray ‘\304’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                       ^
prog.c:15:40: error: stray ‘\220’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                        ^
prog.c:15:41: error: stray ‘\341’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                         ^
prog.c:15:42: error: stray ‘\273’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                          ^
prog.c:15:43: error: stray ‘\213’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                           ^
prog.c:15:50: error: stray ‘\304’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                  ^
prog.c:15:51: error: stray ‘\251’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                   ^
prog.c:15:62: error: stray ‘\341’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                              ^
prog.c:15:63: error: stray ‘\272’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                               ^
prog.c:15:64: error: stray ‘\245’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                ^
prog.c:15:68: error: stray ‘\341’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                    ^
prog.c:15:69: error: stray ‘\272’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                     ^
prog.c:15:70: error: stray ‘\253’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                      ^
prog.c:15:75: error: stray ‘\303’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                           ^
prog.c:15:76: error: stray ‘\252’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                            ^
prog.c:15:81: error: stray ‘\341’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                 ^
prog.c:15:82: error: stray ‘\273’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                  ^
prog.c:15:83: error: stray ‘\201’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                   ^
prog.c:15:87: error: stray ‘\341’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                       ^
prog.c:15:88: error: stray ‘\272’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                        ^
prog.c:15:89: error: stray ‘\247’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                         ^
prog.c:15:93: error: stray ‘\341’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                             ^
prog.c:15:94: error: stray ‘\273’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                              ^
prog.c:15:95: error: stray ‘\221’ in program
 Hd = Ad .* exp(-1j * 0.5 * M * Wm); % Định nghĩa vector lấy mẫu trên miền tần số H(k)
                                                                                               ^
prog.c:17:1: error: expected identifier or ‘(’ before ‘%’ token
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
 ^
prog.c:17:9: error: stray ‘\304’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
         ^
prog.c:17:10: error: stray ‘\221’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
          ^
prog.c:17:11: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
           ^
prog.c:17:12: error: stray ‘\273’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
            ^
prog.c:17:13: error: stray ‘\203’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
             ^
prog.c:17:17: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                 ^
prog.c:17:18: error: stray ‘\273’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                  ^
prog.c:17:19: error: stray ‘\261’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                   ^
prog.c:17:24: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                        ^
prog.c:17:25: error: stray ‘\273’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                         ^
prog.c:17:26: error: stray ‘\207’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                          ^
prog.c:17:30: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                              ^
prog.c:17:31: error: stray ‘\273’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                               ^
prog.c:17:32: error: stray ‘\261’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                ^
prog.c:17:34: error: stray ‘\304’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                  ^
prog.c:17:35: error: stray ‘\221’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                   ^
prog.c:17:36: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                    ^
prog.c:17:37: error: stray ‘\272’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                     ^
prog.c:17:38: error: stray ‘\243’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                      ^
prog.c:17:43: error: stray ‘\306’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                           ^
prog.c:17:44: error: stray ‘\260’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                            ^
prog.c:17:45: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                             ^
prog.c:17:46: error: stray ‘\273’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                              ^
prog.c:17:47: error: stray ‘\243’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                               ^
prog.c:17:51: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                   ^
prog.c:17:52: error: stray ‘\273’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                    ^
prog.c:17:53: error: stray ‘\247’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                     ^
prog.c:17:61: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                             ^
prog.c:17:62: error: stray ‘\272’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                              ^
prog.c:17:63: error: stray ‘\255’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                               ^
prog.c:17:67: error: stray ‘\303’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                   ^
prog.c:17:68: error: stray ‘\240’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                    ^
prog.c:17:76: error: stray ‘\303’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                            ^
prog.c:17:77: error: stray ‘\240’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                             ^
prog.c:17:81: error: stray ‘\303’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                                 ^
prog.c:17:82: error: stray ‘\252’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                                  ^
prog.c:17:86: error: stray ‘\341’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                                      ^
prog.c:17:87: error: stray ‘\273’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                                       ^
prog.c:17:88: error: stray ‘\243’ in program
 %fliplr để thực hiện sự đảo ngược của ma trận và conj là liên hợp
                                                                                        ^
prog.c:18:21: error: expected identifier or ‘(’ before ‘%’ token
 h = real(ifft(Hd)); % h(n) = IDFT[H(k)]
                     ^
prog.c:19:28: error: expected identifier or ‘(’ before ‘%’ token
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                            ^
prog.c:19:31: error: stray ‘\341’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                               ^
prog.c:19:32: error: stray ‘\272’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                ^
prog.c:19:33: error: stray ‘\245’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                 ^
prog.c:19:49: error: stray ‘\303’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                                 ^
prog.c:19:50: error: stray ‘\240’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                                  ^
prog.c:19:56: error: stray ‘\341’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                                        ^
prog.c:19:57: error: stray ‘\273’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                                         ^
prog.c:19:58: error: stray ‘\257’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                                          ^
prog.c:19:64: error: stray ‘\303’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                                                ^
prog.c:19:65: error: stray ‘\240’ in program
 w = linspace(0, pi, 1000); % Lấy 1000 vector hàng giữa 0 và pi
                                                                 ^
prog.c:20:21: error: expected identifier or ‘(’ before ‘%’ token
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                     ^
prog.c:20:23: error: stray ‘\304’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                       ^
prog.c:20:24: error: stray ‘\220’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                        ^
prog.c:20:25: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                         ^
prog.c:20:26: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                          ^
prog.c:20:27: error: stray ‘\223’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                           ^
prog.c:20:31: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                               ^
prog.c:20:32: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                ^
prog.c:20:33: error: stray ‘\213’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                 ^
prog.c:20:37: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                     ^
prog.c:20:38: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                      ^
prog.c:20:39: error: stray ‘\203’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                       ^
prog.c:20:44: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                            ^
prog.c:20:45: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                             ^
prog.c:20:46: error: stray ‘\205’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                              ^
prog.c:20:51: error: stray ‘\303’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                   ^
prog.c:20:52: error: stray ‘\252’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                    ^
prog.c:20:55: error: stray ‘\304’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                       ^
prog.c:20:56: error: stray ‘\221’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                        ^
prog.c:20:57: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                         ^
prog.c:20:58: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                          ^
prog.c:20:59: error: stray ‘\231’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                           ^
prog.c:20:64: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                ^
prog.c:20:65: error: stray ‘\272’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                 ^
prog.c:20:66: error: stray ‘\247’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                  ^
prog.c:20:70: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                      ^
prog.c:20:71: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                       ^
prog.c:20:72: error: stray ‘\221’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                        ^
prog.c:20:75: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                           ^
prog.c:20:76: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                            ^
prog.c:20:77: error: stray ‘\247’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                             ^
prog.c:20:81: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                                 ^
prog.c:20:82: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                                  ^
prog.c:20:83: error: stray ‘\231’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                                   ^
prog.c:20:86: error: stray ‘\341’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                                      ^
prog.c:20:87: error: stray ‘\273’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                                       ^
prog.c:20:88: error: stray ‘\215’ in program
 H = freqz(h, 1, w); % Đồ thị biểu diễn biên độ - tần số của bộ lọc
                                                                                        ^
prog.c:22:33: error: expected identifier or ‘(’ before ‘%’ token
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                 ^
prog.c:22:41: error: stray ‘\341’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                         ^
prog.c:22:42: error: stray ‘\273’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                          ^
prog.c:22:43: error: stray ‘\221’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                           ^
prog.c:22:46: error: stray ‘\341’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                              ^
prog.c:22:47: error: stray ‘\272’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                               ^
prog.c:22:48: error: stray ‘\247’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                ^
prog.c:22:52: error: stray ‘\306’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                    ^
prog.c:22:53: error: stray ‘\260’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                     ^
prog.c:22:54: error: stray ‘\341’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                      ^
prog.c:22:55: error: stray ‘\273’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                       ^
prog.c:22:56: error: stray ‘\243’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                        ^
prog.c:22:60: error: stray ‘\303’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                            ^
prog.c:22:61: error: stray ‘\240’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                             ^
prog.c:22:64: error: stray ‘\341’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                ^
prog.c:22:65: error: stray ‘\272’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                 ^
prog.c:22:66: error: stray ‘\247’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                  ^
prog.c:22:70: error: stray ‘\341’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                      ^
prog.c:22:71: error: stray ‘\273’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                       ^
prog.c:22:72: error: stray ‘\221’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                        ^
prog.c:22:77: error: stray ‘\341’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                             ^
prog.c:22:78: error: stray ‘\272’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                              ^
prog.c:22:79: error: stray ‘\251’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                               ^
prog.c:22:83: error: stray ‘\303’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                   ^
prog.c:22:84: error: stray ‘\263’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                    ^
prog.c:22:88: error: stray ‘\303’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                        ^
prog.c:22:89: error: stray ‘\240’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                         ^
prog.c:22:93: error: stray ‘\303’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                             ^
prog.c:22:94: error: stray ‘\252’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                              ^
prog.c:22:97: error: stray ‘\304’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                                 ^
prog.c:22:98: error: stray ‘\221’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                                  ^
prog.c:22:99: error: stray ‘\341’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                                   ^
prog.c:22:100: error: stray ‘\273’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                                    ^
prog.c:22:101: error: stray ‘\231’ in program
 plot(w/pi, 20 * log10(abs(H))); % Tham số lần lượt là tần số chuẩn hóa và biên độ
                                                                                                     ^
prog.c:23:8: warning: character constant too long for its type
 xlabel('Tần số chuẩn hóa'); ylabel('G Gain/dB'); title('Phản ứng biên độ của bộ lọc thông cao');
        ^~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:23:43: warning: character constant too long for its type
 xlabel('Tần số chuẩn hóa'); ylabel('G Gain/dB'); title('Phản ứng biên độ của bộ lọc thông cao');
                                           ^~~~~~~~~~~
prog.c:23:43: error: expected declaration specifiers or ‘...’ before '\x6e2f6442'
prog.c:23:63: warning: character constant too long for its type
 xlabel('Tần số chuẩn hóa'); ylabel('G Gain/dB'); title('Phản ứng biên độ của bộ lọc thông cao');
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:23:63: error: expected declaration specifiers or ‘...’ before '\x2063616f'
prog.c:24:6: error: expected declaration specifiers or ‘...’ before ‘[’ token
 axis([0 1 -50 0]);
      ^
prog.c:25:8: error: expected declaration specifiers or ‘...’ before numeric constant
 figure(2)
        ^
prog.c:27:18: error: expected identifier or ‘(’ before ‘%’ token
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                  ^
prog.c:27:20: error: stray ‘\304’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                    ^
prog.c:27:21: error: stray ‘\220’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                     ^
prog.c:27:22: error: stray ‘\341’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                      ^
prog.c:27:23: error: stray ‘\273’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                       ^
prog.c:27:24: error: stray ‘\213’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                        ^
prog.c:27:31: error: stray ‘\304’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                               ^
prog.c:27:32: error: stray ‘\251’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                ^
prog.c:27:37: error: stray ‘\341’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                     ^
prog.c:27:38: error: stray ‘\273’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                      ^
prog.c:27:39: error: stray ‘\201’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                       ^
prog.c:27:44: error: stray ‘\341’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                            ^
prog.c:27:45: error: stray ‘\273’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                             ^
prog.c:27:46: error: stray ‘\235’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                              ^
prog.c:27:55: error: stray ‘\303’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                       ^
prog.c:27:56: error: stray ‘\240’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                        ^
prog.c:27:59: error: stray ‘\306’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                           ^
prog.c:27:60: error: stray ‘\260’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                            ^
prog.c:27:61: error: stray ‘\341’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                             ^
prog.c:27:62: error: stray ‘\273’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                              ^
prog.c:27:63: error: stray ‘\233’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                               ^
prog.c:27:68: error: stray ‘\341’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                                    ^
prog.c:27:69: error: stray ‘\272’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                                     ^
prog.c:27:70: error: stray ‘\243’ in program
 t = 0:1/fs:0.25; % Định nghĩa miền thời gian và bước nhảy
                                                                      ^
prog.c:28:73: error: expected identifier or ‘(’ before ‘%’ token
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                         ^
prog.c:28:76: error: stray ‘\303’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                            ^
prog.c:28:77: error: stray ‘\255’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                             ^
prog.c:28:82: error: stray ‘\341’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                  ^
prog.c:28:83: error: stray ‘\273’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                   ^
prog.c:28:84: error: stray ‘\207’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                    ^
prog.c:28:89: error: stray ‘\306’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                         ^
prog.c:28:90: error: stray ‘\260’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                          ^
prog.c:28:91: error: stray ‘\341’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                           ^
prog.c:28:92: error: stray ‘\273’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                            ^
prog.c:28:93: error: stray ‘\233’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                             ^
prog.c:28:101: error: stray ‘\341’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                                     ^
prog.c:28:102: error: stray ‘\273’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                                      ^
prog.c:28:103: error: stray ‘\215’ in program
 s = sin(2 * pi * f1 * t) + sin(2 * pi * f2 * t) + sin(2 * pi * f3 * t); % Tín hiệu trước khi lọc
                                                                                                       ^
prog.c:29:13: error: expected identifier or ‘(’ before ‘%’ token
 plot(t, s); % Đồ thị trước khi lọc
             ^
prog.c:29:15: error: stray ‘\304’ in program
 plot(t, s); % Đồ thị trước khi lọc
               ^
prog.c:29:16: error: stray ‘\220’ in program
 plot(t, s); % Đồ thị trước khi lọc
                ^
prog.c:29:17: error: stray ‘\341’ in program
 plot(t, s); % Đồ thị trước khi lọc
                 ^
prog.c:29:18: error: stray ‘\273’ in program
 plot(t, s); % Đồ thị trước khi lọc
                  ^
prog.c:29:19: error: stray ‘\223’ in program
 plot(t, s); % Đồ thị trước khi lọc
                   ^
prog.c:29:23: error: stray ‘\341’ in program
 plot(t, s); % Đồ thị trước khi lọc
                       ^
prog.c:29:24: error: stray ‘\273’ in program
 plot(t, s); % Đồ thị trước khi lọc
                        ^
prog.c:29:25: error: stray ‘\213’ in program
 plot(t, s); % Đồ thị trước khi lọc
                         ^
prog.c:29:29: error: stray ‘\306’ in program
 plot(t, s); % Đồ thị trước khi lọc
                             ^
prog.c:29:30: error: stray ‘\260’ in program
 plot(t, s); % Đồ thị trước khi lọc
                              ^
prog.c:29:31: error: stray ‘\341’ in program
 plot(t, s); % Đồ thị trước khi lọc
                               ^
prog.c:29:32: error: stray ‘\273’ in program
 plot(t, s); % Đồ thị trước khi lọc
                                ^
prog.c:29:33: error: stray ‘\233’ in program
 plot(t, s); % Đồ thị trước khi lọc
                                 ^
prog.c:29:41: error: stray ‘\341’ in program
 plot(t, s); % Đồ thị trước khi lọc
                                         ^
prog.c:29:42: error: stray ‘\273’ in program
 plot(t, s); % Đồ thị trước khi lọc
                                          ^
prog.c:29:43: error: stray ‘\215’ in program
 plot(t, s); % Đồ thị trước khi lọc
                                           ^
prog.c:30:8: warning: character constant too long for its type
 xlabel('Thời gian/s'); ylabel('Biên độ'); title('Đồ thị miền thời gian trước khi lọc');
        ^~~~~~~~~~~~~~~
prog.c:30:33: warning: character constant too long for its type
 xlabel('Thời gian/s'); ylabel('Biên độ'); title('Đồ thị miền thời gian trước khi lọc');
                                 ^~~~~~~~~~~~~
prog.c:30:33: error: expected declaration specifiers or ‘...’ before '\x91e1bb99'
prog.c:30:55: warning: character constant too long for its type
 xlabel('Thời gian/s'); ylabel('Biên độ'); title('Đồ thị miền thời gian trước khi lọc');
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:30:55: error: expected declaration specifiers or ‘...’ before '\xe1bb8d63'
prog.c:31:9: error: expected declaration specifiers or ‘...’ before numeric constant
 subplot(212)
         ^~~
prog.c:32:19: error: expected identifier or ‘(’ before ‘%’ token
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                   ^
prog.c:32:23: error: stray ‘\341’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                       ^
prog.c:32:24: error: stray ‘\272’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                        ^
prog.c:32:25: error: stray ‘\277’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                         ^
prog.c:32:28: error: stray ‘\304’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                            ^
prog.c:32:29: error: stray ‘\221’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                             ^
prog.c:32:30: error: stray ‘\341’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                              ^
prog.c:32:31: error: stray ‘\273’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                               ^
prog.c:32:32: error: stray ‘\225’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                ^
prog.c:32:42: error: stray ‘\341’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                          ^
prog.c:32:43: error: stray ‘\273’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                           ^
prog.c:32:44: error: stray ‘\201’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                            ^
prog.c:32:48: error: stray ‘\341’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                                ^
prog.c:32:49: error: stray ‘\272’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                                 ^
prog.c:32:50: error: stray ‘\247’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                                  ^
prog.c:32:54: error: stray ‘\341’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                                      ^
prog.c:32:55: error: stray ‘\273’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                                       ^
prog.c:32:56: error: stray ‘\221’ in program
 Fs = fft(s, 512); % Biến đổi sang miền tần số
                                                        ^
prog.c:33:16: error: expected identifier or ‘(’ before ‘%’ token
 AFs = abs(Fs); % Biên độ
                ^
prog.c:33:20: error: stray ‘\303’ in program
 AFs = abs(Fs); % Biên độ
                    ^
prog.c:33:21: error: stray ‘\252’ in program
 AFs = abs(Fs); % Biên độ
                     ^
prog.c:33:24: error: stray ‘\304’ in program
 AFs = abs(Fs); % Biên độ
                        ^
prog.c:33:25: error: stray ‘\221’ in program
 AFs = abs(Fs); % Biên độ
                         ^
prog.c:33:26: error: stray ‘\341’ in program
 AFs = abs(Fs); % Biên độ
                          ^
prog.c:33:27: error: stray ‘\273’ in program
 AFs = abs(Fs); % Biên độ
                           ^
prog.c:33:28: error: stray ‘\231’ in program
 AFs = abs(Fs); % Biên độ
                            ^
prog.c:34:25: error: expected identifier or ‘(’ before ‘%’ token
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                         ^
prog.c:34:28: error: stray ‘\341’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                            ^
prog.c:34:29: error: stray ‘\272’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                             ^
prog.c:34:30: error: stray ‘\245’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                              ^
prog.c:34:34: error: stray ‘\341’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                  ^
prog.c:34:35: error: stray ‘\272’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                   ^
prog.c:34:36: error: stray ‘\253’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                    ^
prog.c:34:40: error: stray ‘\341’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                        ^
prog.c:34:41: error: stray ‘\272’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                         ^
prog.c:34:42: error: stray ‘\247’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                          ^
prog.c:34:46: error: stray ‘\341’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                              ^
prog.c:34:47: error: stray ‘\273’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                               ^
prog.c:34:48: error: stray ‘\221’ in program
 f = (0:255) * fs / 512; % Lấy mẫu tần số
                                                ^
prog.c:35:22: error: expected identifier or ‘(’ before ‘%’ token
 plot(f, AFs(1:256)); % Đồ thị miền tần số trước khi lọc
                      ^
prog.c:35:24: error: stray ‘\304’ in program
 plot(f, AFs(1:256)); % Đồ thị miền tần số trước khi lọc
                        ^
prog.c:35:25: error: stray ‘\220’ in program
 plot(f, AFs(1:256)); % Đồ thị miền tần số trước khi lọc
   
stdout
Standard output is empty