来自汉江北邻的IT男一枚,专注于PHP和C#开发... 最常更新的技术Blog → https://enjoy233.cnblogs.com/
分类: 高性能计算
2013-04-01 18:03:39
/*传递函数*/ p:1/((a+b*%i)^2+(a+b*%i)+1); /*加载绘图库*/ load(draw); /*相频曲线*/ draw2d(grid=true,explicit(180/%pi*carg(ev(p,a=0)),b,0.001,100),logx=true); /*幅频曲线*/ draw2d(grid=true,explicit(20*log(abs(ev(p,a=0)))/log(10),b,0.001,100),logx=true);
/*传递函数*/ p:1/((t*%i)^2+(t*%i)+1); /*幅相曲线(Nyquist图)*/plot2d([parametric, realpart(p), imagpart(p), [t,0.001,200], [nticks, 2000]],[grid,5,5]);命令窗口: