fig9_20c.m
上传用户:szahd2008
上传日期:2020-09-25
资源大小:1275k
文件大小:0k
源码类别:

传真(Fax)编程

开发平台:

Matlab

  1. fofr=0:0.001:1;
  2. f1=4.*fofr;
  3. f2=5.*fofr;
  4. arg1=pi.*f1;
  5. arg2=pi.*f2;
  6. resp1=abs(sin(arg1));
  7. %resp1=resp11.*resp11;
  8. %resp22=(sin(arg2).*sin(arg2));
  9. resp2=abs(sin(arg2));
  10. resp=resp1+resp2;
  11. max1=max(resp);
  12. resp=resp./max1;
  13. plot(fofr,resp,'k');
  14. grid
  15. xlabel('normalized frequency')
  16. ylabel('filter response')