巴特沃斯低通滤波器(C语言).docVIP

  • 8
  • 0
  • 约1.72千字
  • 约 5页
  • 2019-06-01 发布于广东
  • 举报
能实行,c语言不能显示图像,但是你要懂得如何用c调用matlab,过程比较复杂,这个程序任何参数都可以用,不限制 #includeengine.h #includemath.h #includestdio.h #includestdlib.h #includestring.h ?double?calcN(double?fp,double?ap,?double?fs,?double?as) { double?i?=?pow(10,(as/10))?-?1; double?tmp?=?ap/10; double?j?=?pow(10,tmp)?-?1;? double?k?=?log10((i/j)); double?t?=?log10(fs/fp); double?N?=?0.5*k/t?+?1; ?return?N; }; int?main(void) { int?fp,ap,fs,as; printf(请输入fp:); scanf(%d,?fp); ? printf(请输入ap:); scanf(%d,?ap); printf(请输入fs:); scanf(%d,?fs); printf(请输入as:); scanf(%d,?as); ?int?f?=?calcN(fp,?ap,?fs,?as); ?printf(N=%d\n,f);? char?lin[40]; char?*s

文档评论(0)

1亿VIP精品文档

相关文档