fork download
  1. fprintf('Thiết kế bộ lọc thông cao dùng phương pháp cửa sổ \n');
  2. fprintf('Nhập thông số bộ lọc \n');
  3. d1=input('Nhập độ gợn sóng: ');
  4. d2=d1;
  5. pf=input('Passband frequency: ');
  6. sf=input('Stopband frequency: ');
  7. wc=(pf+sf)/2;
  8. D=sf-pf;
  9. fs=3000; %Tần số lấy mẫu
  10. As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
  11. %%%% Chọn cửa sổ phù hợp
  12. if (As>-30)
  13. fprintf('Chọn cửa sổ Chữ nhật');
  14. window=1;
  15. n=ceil(4*pi/D);
  16. end
  17. if ((As>-49)&&(As<-30))
  18. fprintf('Chọn cửa sổ Hanning');
  19. window=2;
  20. n=ceil(8*pi/D);
  21. end
  22. if ((As>-63)&&(As<-49))
  23. fprintf('Chọn cửa sổ Hamming');
  24. window=3;
  25. n=ceil(8*pi/D);
  26. end
  27. if (As<-63)
  28. fprintf('Chọn cửa sổ Blackman');
  29. window=4;
  30. n=ceil(12*pi/D);
  31. end
  32. %%%% Check đảm bảo m phải là số lẻ
  33. if (rem(n,2)==0)
  34. m=n+1;
  35. else
  36. m=n;
  37. end
  38. fprintf('\nBac cua bo loc %0.0f \n', m);
  39. %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
  40. w=zeros(m,1);
  41. if (window==1) % Theo cửa sổ Chữ nhật
  42. for i=1:1:m
  43. w(i)=1;
  44. end
  45. elseif (window==2) % Theo cửa sổ Hanning
  46. for i=0:1:(m-1)
  47. w(i+1)=0.5*(1-cos(2*pi*i/(m-1)));
  48. end
  49. elseif (window==3) % Theo cửa sổ Hamming
  50. for i=0:1:(m-1)
  51. w(i+1)=0.54*1-0.46*cos(2*pi*i/(m-1));
  52. end
  53. elseif (window==4) % Theo cửa sổ Blackman
  54. for i=0:1:(m-1)
  55. w(i+1)=0.42*1-0.45*cos(2*pi*i/(m-1)) + 0.08*cos(4*pi*i/(m-1));
  56. end
  57. end
  58. %%%% Tính toán đáp ứng xung lý tưởng
  59. a=(m-1)/2;
  60. hd=zeros(m-1,1);
  61. %
  62. for i=0:1:(m-1)
  63. hd(i+1)=-sin(wc*(i-a))/(pi*(i-a));
  64. end
  65. hd(a+1)=1-wc/pi;
  66. %%%%
  67. b1=hd.*w;
  68. h=b1'; % Gán h bằng ma trận chuyển vị của b1
  69. %%%%
  70. N = length(h); % Độ dài của h
  71. [H, w1] = freqz(h, 1, 1000); % Tính đáp ứng tần số với 1000 mẫu
  72. db = 20 * log10(abs(H)); % Chuyển đáp ứng tần số sang đơn vị dB
  73. %%%%
  74. n = 0:1:m-1;
  75. %plot
  76. figure; stem (n,hd);
  77. axis ([0,m-1,-0.1,0.8]);
  78. title('Dãy đáp ứng xung của bộ lọc lý tưởng');
  79. xlabel('n'); ylabel('hd(n)');
  80. %
  81. figure; stem (n,w);
  82. axis ([0,m-1,0,1.1]);
  83. title('Dãy hàm cửa sổ');
  84. xlabel('n'); ylabel('w(n)');
  85. %
  86. figure; stem (n,h);
  87. axis ([0,m-1,-0.1,0.8]);
  88. title('Hàm độ lớn tuyệt đối của đáp ứng tần số');
  89. xlabel('n'); ylabel('h(n)');
  90. %
  91. figure;
  92. plot(w1/pi,db); grid; hold on;
  93. plot(-w1/pi,db); grid;
  94. axis([-1,1,-100,10]);
  95. title('Hàm độ lớn tương đối (dB) của đáp ứng tần số');
  96. xlabel('frequency in pi units'); ylabel('Decibels');
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 cửa sổ \n');
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:1:9: error: expected declaration specifiers or ‘...’ before '\xbb95200a'
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
 d1=input('Nhập độ gợn sóng: ');
 ^~
prog.c:3:1: warning: type defaults to ‘int’ in declaration of ‘d1’ [-Wimplicit-int]
prog.c:3:4: warning: implicit declaration of function ‘input’ [-Wimplicit-function-declaration]
 d1=input('Nhập độ gợn sóng: ');
    ^~~~~
prog.c:3:10: warning: character constant too long for its type
 d1=input('Nhập độ gợn sóng: ');
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:3:4: error: initializer element is not constant
 d1=input('Nhập độ gợn sóng: ');
    ^~~~~
prog.c:4:1: warning: data definition has no type or storage class
 d2=d1;
 ^~
prog.c:4:1: warning: type defaults to ‘int’ in declaration of ‘d2’ [-Wimplicit-int]
prog.c:4:4: error: initializer element is not constant
 d2=d1;
    ^~
prog.c:5:1: warning: data definition has no type or storage class
 pf=input('Passband frequency: ');
 ^~
prog.c:5:1: warning: type defaults to ‘int’ in declaration of ‘pf’ [-Wimplicit-int]
prog.c:5:10: warning: character constant too long for its type
 pf=input('Passband frequency: ');
          ^~~~~~~~~~~~~~~~~~~~~~
prog.c:5:4: error: initializer element is not constant
 pf=input('Passband frequency: ');
    ^~~~~
prog.c:6:1: warning: data definition has no type or storage class
 sf=input('Stopband frequency: ');
 ^~
prog.c:6:1: warning: type defaults to ‘int’ in declaration of ‘sf’ [-Wimplicit-int]
prog.c:6:10: warning: character constant too long for its type
 sf=input('Stopband frequency: ');
          ^~~~~~~~~~~~~~~~~~~~~~
prog.c:6:4: error: initializer element is not constant
 sf=input('Stopband frequency: ');
    ^~~~~
prog.c:7:1: warning: data definition has no type or storage class
 wc=(pf+sf)/2;
 ^~
prog.c:7:1: warning: type defaults to ‘int’ in declaration of ‘wc’ [-Wimplicit-int]
prog.c:7:4: error: initializer element is not constant
 wc=(pf+sf)/2;
    ^
prog.c:8:1: warning: data definition has no type or storage class
 D=sf-pf;
 ^
prog.c:8:1: warning: type defaults to ‘int’ in declaration of ‘D’ [-Wimplicit-int]
prog.c:8:3: error: initializer element is not constant
 D=sf-pf;
   ^~
prog.c:9:1: warning: data definition has no type or storage class
 fs=3000; %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:10: error: expected identifier or ‘(’ before ‘%’ token
 fs=3000; %Tần số lấy mẫu
          ^
prog.c:9:12: error: stray ‘\341’ in program
 fs=3000; %Tần số lấy mẫu
            ^
prog.c:9:13: error: stray ‘\272’ in program
 fs=3000; %Tần số lấy mẫu
             ^
prog.c:9:14: error: stray ‘\247’ in program
 fs=3000; %Tần số lấy mẫu
              ^
prog.c:9:18: error: stray ‘\341’ in program
 fs=3000; %Tần số lấy mẫu
                  ^
prog.c:9:19: error: stray ‘\273’ in program
 fs=3000; %Tần số lấy mẫu
                   ^
prog.c:9:20: error: stray ‘\221’ in program
 fs=3000; %Tần số lấy mẫu
                    ^
prog.c:9:23: error: stray ‘\341’ in program
 fs=3000; %Tần số lấy mẫu
                       ^
prog.c:9:24: error: stray ‘\272’ in program
 fs=3000; %Tần số lấy mẫu
                        ^
prog.c:9:25: error: stray ‘\245’ in program
 fs=3000; %Tần số lấy mẫu
                         ^
prog.c:9:29: error: stray ‘\341’ in program
 fs=3000; %Tần số lấy mẫu
                             ^
prog.c:9:30: error: stray ‘\272’ in program
 fs=3000; %Tần số lấy mẫu
                              ^
prog.c:9:31: error: stray ‘\253’ in program
 fs=3000; %Tần số lấy mẫu
                               ^
prog.c:10:16: error: expected identifier or ‘(’ before ‘%’ token
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                ^
prog.c:10:18: error: stray ‘\303’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                  ^
prog.c:10:19: error: stray ‘\255’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                   ^
prog.c:10:25: error: stray ‘\303’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                         ^
prog.c:10:26: error: stray ‘\252’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                          ^
prog.c:10:29: error: stray ‘\304’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                             ^
prog.c:10:30: error: stray ‘\221’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                              ^
prog.c:10:31: error: stray ‘\341’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                               ^
prog.c:10:32: error: stray ‘\273’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                ^
prog.c:10:33: error: stray ‘\231’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                 ^
prog.c:10:36: error: stray ‘\341’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                    ^
prog.c:10:37: error: stray ‘\273’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                     ^
prog.c:10:38: error: stray ‘\261’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                      ^
prog.c:10:43: error: stray ‘\303’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                           ^
prog.c:10:44: error: stray ‘\252’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                            ^
prog.c:10:47: error: stray ‘\304’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                               ^
prog.c:10:48: error: stray ‘\221’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                ^
prog.c:10:49: error: stray ‘\341’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                 ^
prog.c:10:50: error: stray ‘\273’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                  ^
prog.c:10:51: error: stray ‘\231’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                   ^
prog.c:10:54: error: stray ‘\341’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                      ^
prog.c:10:55: error: stray ‘\273’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                       ^
prog.c:10:56: error: stray ‘\243’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                        ^
prog.c:10:60: error: stray ‘\303’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                            ^
prog.c:10:61: error: stray ‘\263’ in program
 As=20*log(d1); %Tính biên độ dựa trên độ gợn sóng
                                                             ^
prog.c:11:8: error: stray ‘\341’ in program
 %%%% Chọn cửa sổ phù hợp
        ^
prog.c:11:9: error: stray ‘\273’ in program
 %%%% Chọn cửa sổ phù hợp
         ^
prog.c:11:10: error: stray ‘\215’ in program
 %%%% Chọn cửa sổ phù hợp
          ^
prog.c:11:14: error: stray ‘\341’ in program
 %%%% Chọn cửa sổ phù hợp
              ^
prog.c:11:15: error: stray ‘\273’ in program
 %%%% Chọn cửa sổ phù hợp
               ^
prog.c:11:16: error: stray ‘\255’ in program
 %%%% Chọn cửa sổ phù hợp
                ^
prog.c:11:20: error: stray ‘\341’ in program
 %%%% Chọn cửa sổ phù hợp
                    ^
prog.c:11:21: error: stray ‘\273’ in program
 %%%% Chọn cửa sổ phù hợp
                     ^
prog.c:11:22: error: stray ‘\225’ in program
 %%%% Chọn cửa sổ phù hợp
                      ^
prog.c:11:26: error: stray ‘\303’ in program
 %%%% Chọn cửa sổ phù hợp
                          ^
prog.c:11:27: error: stray ‘\271’ in program
 %%%% Chọn cửa sổ phù hợp
                           ^
prog.c:11:30: error: stray ‘\341’ in program
 %%%% Chọn cửa sổ phù hợp
                              ^
prog.c:11:31: error: stray ‘\273’ in program
 %%%% Chọn cửa sổ phù hợp
                               ^
prog.c:11:32: error: stray ‘\243’ in program
 %%%% Chọn cửa sổ phù hợp
                                ^
prog.c:13:9: warning: character constant too long for its type
 fprintf('Chọn cửa sổ Chữ nhật');
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:14:1: warning: data definition has no type or storage class
 window=1;
 ^~~~~~
prog.c:14:1: warning: type defaults to ‘int’ in declaration of ‘window’ [-Wimplicit-int]
prog.c:15:1: warning: data definition has no type or storage class
 n=ceil(4*pi/D);
 ^
prog.c:15:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
prog.c:15:3: warning: implicit declaration of function ‘ceil’ [-Wimplicit-function-declaration]
 n=ceil(4*pi/D);
   ^~~~
prog.c:15:3: warning: incompatible implicit declaration of built-in function ‘ceil’
prog.c:15:3: note: include ‘<math.h>’ or provide a declaration of ‘ceil’
prog.c:1:1:
+#include <math.h>
 fprintf('Thiết kế bộ lọc thông cao dùng phương pháp cửa sổ \n');
prog.c:15:3:
 n=ceil(4*pi/D);
   ^~~~
prog.c:15:10: error: ‘pi’ undeclared here (not in a function); did you mean ‘pf’?
 n=ceil(4*pi/D);
          ^~
          pf
prog.c:17:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘if’
 if ((As>-49)&&(As<-30))
 ^~
prog.c:18:9: warning: character constant too long for its type
 fprintf('Chọn cửa sổ Hanning');
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:19:1: warning: data definition has no type or storage class
 window=2;
 ^~~~~~
prog.c:19:1: warning: type defaults to ‘int’ in declaration of ‘window’ [-Wimplicit-int]
prog.c:19:1: error: redefinition of ‘window’
prog.c:14:1: note: previous definition of ‘window’ was here
 window=1;
 ^~~~~~
prog.c:20:1: warning: data definition has no type or storage class
 n=ceil(8*pi/D);
 ^
prog.c:20:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
prog.c:20:1: error: redefinition of ‘n’
prog.c:15:1: note: previous definition of ‘n’ was here
 n=ceil(4*pi/D);
 ^
prog.c:22:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘if’
 if ((As>-63)&&(As<-49))
 ^~
prog.c:23:9: warning: character constant too long for its type
 fprintf('Chọn cửa sổ Hamming');
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:24:1: warning: data definition has no type or storage class
 window=3;
 ^~~~~~
prog.c:24:1: warning: type defaults to ‘int’ in declaration of ‘window’ [-Wimplicit-int]
prog.c:24:1: error: redefinition of ‘window’
prog.c:14:1: note: previous definition of ‘window’ was here
 window=1;
 ^~~~~~
prog.c:25:1: warning: data definition has no type or storage class
 n=ceil(8*pi/D);
 ^
prog.c:25:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
prog.c:25:1: error: redefinition of ‘n’
prog.c:15:1: note: previous definition of ‘n’ was here
 n=ceil(4*pi/D);
 ^
prog.c:27:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘if’
 if (As<-63)
 ^~
prog.c:28:9: warning: character constant too long for its type
 fprintf('Chọn cửa sổ Blackman');
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:29:1: warning: data definition has no type or storage class
 window=4;
 ^~~~~~
prog.c:29:1: warning: type defaults to ‘int’ in declaration of ‘window’ [-Wimplicit-int]
prog.c:29:1: error: redefinition of ‘window’
prog.c:14:1: note: previous definition of ‘window’ was here
 window=1;
 ^~~~~~
prog.c:30:1: warning: data definition has no type or storage class
 n=ceil(12*pi/D);
 ^
prog.c:30:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
prog.c:30:1: error: redefinition of ‘n’
prog.c:15:1: note: previous definition of ‘n’ was here
 n=ceil(4*pi/D);
 ^
prog.c:32:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘%’ token
 %%%% Check đảm bảo m phải là số lẻ
 ^
prog.c:32:12: error: stray ‘\304’ in program
 %%%% Check đảm bảo m phải là số lẻ
            ^
prog.c:32:13: error: stray ‘\221’ in program
 %%%% Check đảm bảo m phải là số lẻ
             ^
prog.c:32:14: error: stray ‘\341’ in program
 %%%% Check đảm bảo m phải là số lẻ
              ^
prog.c:32:15: error: stray ‘\272’ in program
 %%%% Check đảm bảo m phải là số lẻ
               ^
prog.c:32:16: error: stray ‘\243’ in program
 %%%% Check đảm bảo m phải là số lẻ
                ^
prog.c:32:20: error: stray ‘\341’ in program
 %%%% Check đảm bảo m phải là số lẻ
                    ^
prog.c:32:21: error: stray ‘\272’ in program
 %%%% Check đảm bảo m phải là số lẻ
                     ^
prog.c:32:22: error: stray ‘\243’ in program
 %%%% Check đảm bảo m phải là số lẻ
                      ^
prog.c:32:29: error: stray ‘\341’ in program
 %%%% Check đảm bảo m phải là số lẻ
                             ^
prog.c:32:30: error: stray ‘\272’ in program
 %%%% Check đảm bảo m phải là số lẻ
                              ^
prog.c:32:31: error: stray ‘\243’ in program
 %%%% Check đảm bảo m phải là số lẻ
                               ^
prog.c:32:35: error: stray ‘\303’ in program
 %%%% Check đảm bảo m phải là số lẻ
                                   ^
prog.c:32:36: error: stray ‘\240’ in program
 %%%% Check đảm bảo m phải là số lẻ
                                    ^
prog.c:32:39: error: stray ‘\341’ in program
 %%%% Check đảm bảo m phải là số lẻ
                                       ^
prog.c:32:40: error: stray ‘\273’ in program
 %%%% Check đảm bảo m phải là số lẻ
                                        ^
prog.c:32:41: error: stray ‘\221’ in program
 %%%% Check đảm bảo m phải là số lẻ
                                         ^
prog.c:32:44: error: stray ‘\341’ in program
 %%%% Check đảm bảo m phải là số lẻ
                                            ^
prog.c:32:45: error: stray ‘\272’ in program
 %%%% Check đảm bảo m phải là số lẻ
                                             ^
prog.c:32:46: error: stray ‘\273’ in program
 %%%% Check đảm bảo m phải là số lẻ
                                              ^
prog.c:35:1: error: expected identifier or ‘(’ before ‘else’
 else
 ^~~~
prog.c:37:1: error: unknown type name ‘end’
 end
 ^~~
prog.c:38:9: warning: character constant too long for its type
 fprintf('\nBac cua bo loc %0.0f \n', m);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:38:9: error: expected declaration specifiers or ‘...’ before '\x3066200a'
prog.c:38:38: error: unknown type name ‘m’
 fprintf('\nBac cua bo loc %0.0f \n', m);
                                      ^
prog.c:39:1: error: expected identifier or ‘(’ before ‘%’ token
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
 ^
prog.c:39:7: error: stray ‘\303’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
       ^
prog.c:39:8: error: stray ‘\255’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
        ^
prog.c:39:14: error: stray ‘\303’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
              ^
prog.c:39:15: error: stray ‘\241’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
               ^
prog.c:39:19: error: stray ‘\303’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                   ^
prog.c:39:20: error: stray ‘\240’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                    ^
prog.c:39:24: error: stray ‘\341’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                        ^
prog.c:39:25: error: stray ‘\273’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                         ^
prog.c:39:26: error: stray ‘\255’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                          ^
prog.c:39:30: error: stray ‘\341’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                              ^
prog.c:39:31: error: stray ‘\273’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                               ^
prog.c:39:32: error: stray ‘\225’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                ^
prog.c:39:35: error: stray ‘\341’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                   ^
prog.c:39:36: error: stray ‘\273’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                    ^
prog.c:39:37: error: stray ‘\261’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                     ^
prog.c:39:42: error: stray ‘\303’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                          ^
prog.c:39:43: error: stray ‘\252’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                           ^
prog.c:39:47: error: stray ‘\341’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                               ^
prog.c:39:48: error: stray ‘\273’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                ^
prog.c:39:49: error: stray ‘\255’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                 ^
prog.c:39:53: error: stray ‘\341’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                     ^
prog.c:39:54: error: stray ‘\273’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                      ^
prog.c:39:55: error: stray ‘\225’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                       ^
prog.c:39:57: error: stray ‘\304’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                         ^
prog.c:39:58: error: stray ‘\221’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                          ^
prog.c:39:59: error: stray ‘\303’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                           ^
prog.c:39:60: error: stray ‘\243’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                            ^
prog.c:39:63: error: stray ‘\341’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                               ^
prog.c:39:64: error: stray ‘\273’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                                ^
prog.c:39:65: error: stray ‘\261’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                                 ^
prog.c:39:70: error: stray ‘\341’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                                      ^
prog.c:39:71: error: stray ‘\273’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                                       ^
prog.c:39:72: error: stray ‘\215’ in program
 %%%% Tính toán hàm cửa sổ dựa trên cửa sổ đã lựa chọn
                                                                        ^
prog.c:41:1: error: expected identifier or ‘(’ before ‘if’
 if (window==1) % Theo cửa sổ Chữ nhật
 ^~
prog.c:41:24: error: stray ‘\341’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                        ^
prog.c:41:25: error: stray ‘\273’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                         ^
prog.c:41:26: error: stray ‘\255’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                          ^
prog.c:41:30: error: stray ‘\341’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                              ^
prog.c:41:31: error: stray ‘\273’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                               ^
prog.c:41:32: error: stray ‘\225’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                                ^
prog.c:41:36: error: stray ‘\341’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                                    ^
prog.c:41:37: error: stray ‘\273’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                                     ^
prog.c:41:38: error: stray ‘\257’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                                      ^
prog.c:41:42: error: stray ‘\341’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                                          ^
prog.c:41:43: error: stray ‘\272’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                                           ^
prog.c:41:44: error: stray ‘\255’ in program
 if (window==1) % Theo cửa sổ Chữ nhật
                                            ^
prog.c:44:5: error: unknown type name ‘end’
     end
     ^~~
prog.c:45:15: error: expected ‘)’ before ‘==’ token
 elseif (window==2) % Theo cửa sổ Hanning
               ^~
               )
prog.c:45:28: error: stray ‘\341’ in program
 elseif (window==2) % Theo cửa sổ Hanning
                            ^
prog.c:45:29: error: stray ‘\273’ in program
 elseif (window==2) % Theo cửa sổ Hanning
                             ^
prog.c:45:30: error: stray ‘\255’ in program
 elseif (window==2) % Theo cửa sổ Hanning
                              ^
prog.c:45:34: error: stray ‘\341’ in program
 elseif (window==2) % Theo cửa sổ Hanning
                                  ^
prog.c:45:35: error: stray ‘\273’ in program
 elseif (window==2) % Theo cửa sổ Hanning
                                   ^
prog.c:45:36: error: stray ‘\225’ in program
 elseif (window==2) % Theo cửa sổ Hanning
                                    ^
prog.c:48:5: error: unknown type name ‘end’
     end
     ^~~
prog.c:49:15: error: expected ‘)’ before ‘==’ token
 elseif (window==3) % Theo cửa sổ Hamming
               ^~
               )
prog.c:49:28: error: stray ‘\341’ in program
 elseif (window==3) % Theo cửa sổ Hamming
                            ^
prog.c:49:29: error: stray ‘\273’ in program
 elseif (window==3) % Theo cửa sổ Hamming
                             ^
prog.c:49:30: error: stray ‘\255’ in program
 elseif (window==3) % Theo cửa sổ Hamming
                              ^
prog.c:49:34: error: stray ‘\341’ in program
 elseif (window==3) % Theo cửa sổ Hamming
                                  ^
prog.c:49:35: error: stray ‘\273’ in program
 elseif (window==3) % Theo cửa sổ Hamming
                                   ^
prog.c:49:36: error: stray ‘\225’ in program
 elseif (window==3) % Theo cửa sổ Hamming
                                    ^
prog.c:52:5: error: unknown type name ‘end’
     end
     ^~~
prog.c:53:15: error: expected ‘)’ before ‘==’ token
 elseif (window==4) % Theo cửa sổ Blackman
               ^~
               )
prog.c:53:28: error: stray ‘\341’ in program
 elseif (window==4) % Theo cửa sổ Blackman
                            ^
prog.c:53:29: error: stray ‘\273’ in program
 elseif (window==4) % Theo cửa sổ Blackman
                             ^
prog.c:53:30: error: stray ‘\255’ in program
 elseif (window==4) % Theo cửa sổ Blackman
                              ^
prog.c:53:34: error: stray ‘\341’ in program
 elseif (window==4) % Theo cửa sổ Blackman
                                  ^
prog.c:53:35: error: stray ‘\273’ in program
 elseif (window==4) % Theo cửa sổ Blackman
                                   ^
prog.c:53:36: error: stray ‘\225’ in program
 elseif (window==4) % Theo cửa sổ Blackman
                                    ^
prog.c:56:5: error: unknown type name ‘end’
     end
     ^~~
prog.c:58:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘%’ token
 %%%% Tính toán đáp ứng xung lý tưởng
 ^
prog.c:58:7: error: stray ‘\303’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
       ^
prog.c:58:8: error: stray ‘\255’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
        ^
prog.c:58:14: error: stray ‘\303’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
              ^
prog.c:58:15: error: stray ‘\241’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
               ^
prog.c:58:18: error: stray ‘\304’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                  ^
prog.c:58:19: error: stray ‘\221’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                   ^
prog.c:58:20: error: stray ‘\303’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                    ^
prog.c:58:21: error: stray ‘\241’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                     ^
prog.c:58:24: error: stray ‘\341’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                        ^
prog.c:58:25: error: stray ‘\273’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                         ^
prog.c:58:26: error: stray ‘\251’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                          ^
prog.c:58:36: error: stray ‘\303’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                                    ^
prog.c:58:37: error: stray ‘\275’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                                     ^
prog.c:58:40: error: stray ‘\306’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                                        ^
prog.c:58:41: error: stray ‘\260’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                                         ^
prog.c:58:42: error: stray ‘\341’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                                          ^
prog.c:58:43: error: stray ‘\273’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                                           ^
prog.c:58:44: error: stray ‘\237’ in program
 %%%% Tính toán đáp ứng xung lý tưởng
                                            ^
prog.c:60:1: warning: data definition has no type or storage class
 hd=zeros(m-1,1);
 ^~
prog.c:60:1: warning: type defaults to ‘int’ in declaration of ‘hd’ [-Wimplicit-int]
prog.c:60:4: warning: implicit declaration of function ‘zeros’ [-Wimplicit-function-declaration]
 hd=zeros(m-1,1);
    ^~~~~
prog.c:60:10: error: ‘m’ undeclared here (not in a function)
 hd=zeros(m-1,1);
          ^
prog.c:61:1: error: expected identifier or ‘(’ before ‘%’ token
 %
 ^
prog.c:64:1: error: unknown type name ‘end’
 end
 ^~~
prog.c:65:5: error: expected ‘)’ before ‘+’ token
 hd(a+1)=1-wc/pi;
     ^
     )
prog.c:66:1: error: expected identifier or ‘(’ before ‘%’ token
 %%%%
 ^
prog.c:68:1: warning: data definition has no type or storage class
 h=b1'; % Gán h bằng ma trận chuyển vị của b1
 ^
prog.c:68:1: warning: type defaults to ‘int’ in declaration of ‘h’ [-Wimplicit-int]
prog.c:68:5: warning: missing terminating ' character
 h=b1'; % Gán h bằng ma trận chuyển vị của b1
     ^
prog.c:68:5: error: missing terminating ' character
 h=b1'; % Gán h bằng ma trận chuyển vị của b1
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:68:3: error: ‘b1’ undeclared here (not in a function); did you mean ‘d1’?
 h=b1'; % Gán h bằng ma trận chuyển vị của b1
   ^~
   d1
prog.c:69:2: error: expected expression before ‘%’ token
 %%%%
  ^
prog.c:70:17: error: expected identifier or ‘(’ before ‘%’ token
 N = length(h);  % Độ dài của h
                 ^
prog.c:70:19: error: stray ‘\304’ in program
 N = length(h);  % Độ dài của h
                   ^
prog.c:70:20: error: stray ‘\220’ in program
 N = length(h);  % Độ dài của h
                    ^
prog.c:70:21: error: stray ‘\341’ in program
 N = length(h);  % Độ dài của h
                     ^
prog.c:70:22: error: stray ‘\273’ in program
 N = length(h);  % Độ dài của h
                      ^
prog.c:70:23: error: stray ‘\231’ in program
 N = length(h);  % Độ dài của h
                       ^
prog.c:70:26: error: stray ‘\303’ in program
 N = length(h);  % Độ dài của h
                          ^
prog.c:70:27: error: stray ‘\240’ in program
 N = length(h);  % Độ dài của h
                           ^
prog.c:70:31: error: stray ‘\341’ in program
 N = length(h);  % Độ dài của h
                               ^
prog.c:70:32: error: stray ‘\273’ in program
 N = length(h);  % Độ dài của h
                                ^
prog.c:70:33: error: stray ‘\247’ in program
 N = length(h);  % Độ dài của h
                                 ^
prog.c:71:31: error: expected identifier or ‘(’ before ‘%’ token
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                               ^
prog.c:71:34: error: stray ‘\303’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                  ^
prog.c:71:35: error: stray ‘\255’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                   ^
prog.c:71:39: error: stray ‘\304’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                       ^
prog.c:71:40: error: stray ‘\221’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                        ^
prog.c:71:41: error: stray ‘\303’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                         ^
prog.c:71:42: error: stray ‘\241’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                          ^
prog.c:71:45: error: stray ‘\341’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                             ^
prog.c:71:46: error: stray ‘\273’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                              ^
prog.c:71:47: error: stray ‘\251’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                               ^
prog.c:71:52: error: stray ‘\341’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                    ^
prog.c:71:53: error: stray ‘\272’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                     ^
prog.c:71:54: error: stray ‘\247’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                      ^
prog.c:71:58: error: stray ‘\341’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                          ^
prog.c:71:59: error: stray ‘\273’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                           ^
prog.c:71:60: error: stray ‘\221’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                            ^
prog.c:71:63: error: stray ‘\341’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                               ^
prog.c:71:64: error: stray ‘\273’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                                ^
prog.c:71:65: error: stray ‘\233’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                                 ^
prog.c:71:74: error: stray ‘\341’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                                          ^
prog.c:71:75: error: stray ‘\272’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                                           ^
prog.c:71:76: error: stray ‘\253’ in program
 [H, w1] = freqz(h, 1, 1000);  % Tính đáp ứng tần số với 1000 mẫu
                                                                            ^
prog.c:72:27: error: expected identifier or ‘(’ before ‘%’ token
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                           ^
prog.c:72:33: error: stray ‘\341’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                 ^
prog.c:72:34: error: stray ‘\273’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                  ^
prog.c:72:35: error: stray ‘\203’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                   ^
prog.c:72:38: error: stray ‘\304’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                      ^
prog.c:72:39: error: stray ‘\221’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                       ^
prog.c:72:40: error: stray ‘\303’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                        ^
prog.c:72:41: error: stray ‘\241’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                         ^
prog.c:72:44: error: stray ‘\341’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                            ^
prog.c:72:45: error: stray ‘\273’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                             ^
prog.c:72:46: error: stray ‘\251’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                              ^
prog.c:72:51: error: stray ‘\341’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                   ^
prog.c:72:52: error: stray ‘\272’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                    ^
prog.c:72:53: error: stray ‘\247’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                     ^
prog.c:72:57: error: stray ‘\341’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                         ^
prog.c:72:58: error: stray ‘\273’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                          ^
prog.c:72:59: error: stray ‘\221’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                           ^
prog.c:72:66: error: stray ‘\304’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                                  ^
prog.c:72:67: error: stray ‘\221’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                                   ^
prog.c:72:68: error: stray ‘\306’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                                    ^
prog.c:72:69: error: stray ‘\241’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                                     ^
prog.c:72:73: error: stray ‘\341’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                                         ^
prog.c:72:74: error: stray ‘\273’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                                          ^
prog.c:72:75: error: stray ‘\213’ in program
 db = 20 * log10(abs(H));  % Chuyển đáp ứng tần số sang đơn vị dB
                                                                           ^
prog.c:75:1: error: expected identifier or ‘(’ before ‘%’ token
 %plot
 ^
prog.c:76:9: warning: data definition has no type or storage class
 figure; stem (n,hd);
         ^~~~
prog.c:76:9: warning: type defaults to ‘int’ in declaration of ‘stem’ [-Wimplicit-int]
prog.c:76:1: warning: parameter names (without types) in function declaration
 figure; stem (n,hd);
 ^~~~~~
prog.c:77:7: error: expected declaration specifiers or ‘...’ before ‘[’ token
 axis ([0,m-1,-0.1,0.8]);
       ^
prog.c:78:7: warning: character constant too long for its type
 title('Dãy đáp ứng xung của bộ lọc lý tưởng');
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:78:7: error: expected declaration specifiers or ‘...’ before '\xbb9f6e67'
prog.c:79:8: error: expected declaration specifiers or ‘...’ before 'n'
 xlabel('n'); ylabel('hd(n)');
        ^~~
prog.c:79:21: warning: character constant too long for its type
 xlabel('n'); ylabel('hd(n)');
                     ^~~~~~~
prog.c:79:21: error: expected declaration specifiers or ‘...’ before '\x64286e29'
prog.c:80:1: error: expected identifier or ‘(’ before ‘%’ token
 %
 ^
prog.c:81:9: warning: data definition has no type or storage class
 figure; stem (n,w);
         ^~~~
prog.c:81:9: warning: type defaults to ‘int’ in declaration of ‘stem’ [-Wimplicit-int]
prog.c:81:1: warning: parameter names (without types) in function declaration
 figure; stem (n,w);
 ^~~~~~
prog.c:82:7: error: expected declaration specifiers or ‘...’ before ‘[’ token
 axis ([0,m-1,0,1.1]);
       ^
prog.c:83:7: warning: character constant too long for its type
 title('Dãy hàm cửa sổ');
       ^~~~~~~~~~~~~~~~~~~~~~
prog.c:83:7: error: expected declaration specifiers or ‘...’ before '\x73e1bb95'
prog.c:84:8: error: expected declaration specifiers or ‘...’ before 'n'
 xlabel('n'); ylabel('w(n)');
        ^~~
prog.c:84:21: warning: multi-character character constant [-Wmultichar]
 xlabel('n'); ylabel('w(n)');
                     ^~~~~~
prog.c:84:21: error: expected declaration specifiers or ‘...’ before '\x77286e29'
prog.c:85:1: error: expected identifier or ‘(’ before ‘%’ token
 %
 ^
prog.c:86:9: warning: data definition has no type or storage class
 figure; stem (n,h);
         ^~~~
prog.c:86:9: warning: type defaults to ‘int’ in declaration of ‘stem’ [-Wimplicit-int]
prog.c:86:1: warning: parameter names (without types) in function declaration
 figure; stem (n,h);
 ^~~~~~
prog.c:87:7: error: expected declaration specifiers or ‘...’ before ‘[’ token
 axis ([0,m-1,-0.1,0.8]);
       ^
prog.c:88:7: warning: character constant too long for its type
 title('Hàm độ lớn tuyệt đối của đáp ứng tần số');
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:88:7: error: expected declaration specifiers or ‘...’ before '\x73e1bb91'
prog.c:89:8: error: expected declaration specifiers or ‘...’ before 'n'
 xlabel('n'); ylabel('h(n)');
        ^~~
prog.c:89:21: warning: multi-character character constant [-Wmultichar]
 xlabel('n'); ylabel('h(n)');
                     ^~~~~~
prog.c:89:21: error: expected declaration specifiers or ‘...’ before '\x68286e29'
prog.c:90:1: error: expected identifier or ‘(’ before ‘%’ token
 %
 ^
prog.c:92:8: error: expected ‘)’ before ‘/’ token
 plot(w1/pi,db); grid; hold on;
        ^
        )
prog.c:92:17: warning: data definition has no type or storage class
 plot(w1/pi,db); grid; hold on;
                 ^~~~
prog.c:92:17: warning: type defaults to ‘int’ in declaration of ‘grid’ [-Wimplicit-int]
prog.c:92:23: error: unknown type name ‘hold’; did you mean ‘void’?
 plot(w1/pi,db); grid; hold on;
                       ^~~~
                       void
prog.c:93:6: error: expected declaration specifiers or ‘...’ before ‘-’ token
 plot(-w1/pi,db); grid;
      ^
prog.c:93:13: error: unknown type name ‘db’
 plot(-w1/pi,db); grid;
             ^~
prog.c:93:18: warning: data definition has no type or storage class
 plot(-w1/pi,db); grid;
                  ^~~~
prog.c:93:18: warning: type defaults to ‘int’ in declaration of ‘grid’ [-Wimplicit-int]
prog.c:94:6: error: expected declaration specifiers or ‘...’ before ‘[’ token
 axis([-1,1,-100,10]);
      ^
prog.c:95:7: warning: character constant too long for its type
 title('Hàm độ lớn tương đối (dB) của đáp ứng tần số');
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:95:7: error: expected declaration specifiers or ‘...’ before '\x73e1bb91'
prog.c:96:8: warning: character constant too long for its type
 xlabel('frequency in pi units'); ylabel('Decibels');
        ^~~~~~~~~~~~~~~~~~~~~~~
prog.c:96:8: error: expected declaration specifiers or ‘...’ before '\x6e697473'
prog.c:96:41: warning: character constant too long for its type
 xlabel('frequency in pi units'); ylabel('Decibels');
                                         ^~~~~~~~~~
prog.c:96:41: error: expected declaration specifiers or ‘...’ before '\x62656c73'
stdout
Standard output is empty