关键词不能为空

当前您在: 主页 > 英语 >

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

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-13 18:11
tags:

-

2021年2月13日发(作者:下车英语)


能实行,


c


语言不能显示图像,但是你要懂得如 何用


c


调用


matlab


,过程比较复杂,


这个程序任何参数都可以用,不限制



#include


#include


#include


#include


#include


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:


sc anf(



printf(


请输入< /p>


ap:


scanf(


printf(


请输入


fs:


scanf(


printf(


请输入


as:


scanf(


int f = calcN(fp, ap, fs, as);


printf(


char lin[40];


char *str =


lin[0]='0';


char in[4];


itoa(f,in,10);



strcat(lin,str);


strcat(lin,in);


strcat(lin,


/////////////////////////////////////// ////////////////////


Engine *ep;


if(!(ep = engOpen(NULL)))


{

-


-


-


-


-


-


-


-



本文更新与2021-02-13 18:11,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/651847.html

巴特沃斯低通滤波器(C语言)的相关文章