简体   繁体   English

python 实现 matlab "d2c" function

[英]python implementation of matlab "d2c" function

I'm trying to convert a discrete transfer function to a continuous one (z to s) in python.我正在尝试将离散传输 function 转换为 python 中的连续传输(z 到 s)。 It works perfectly fine in Matlab:它在 Matlab 中运行良好:

>> H = tf([0.0, 0.00011109058274028799, 0.0, 0.0, 0.0, 0.0],[1.0, -4.746477630953663, 9.128106677145524, -8.893610005776452, 4.389391849996713, -0.8774091162885327],0.1)

H =
 
                        0.0001111 z^4
  ----------------------------------------------------------
  z^5 - 4.746 z^4 + 9.128 z^3 - 8.894 z^2 + 4.389 z - 0.8774
 
Sample time: 0.1 seconds
Discrete-time transfer function.

>> a = d2c(H)

a =
 
  0.0002306 s^4 + 0.009752 s^3 + 0.2071 s^2 + 2.384 s + 11.99
  -----------------------------------------------------------
  s^5 + 1.308 s^4 + 13.53 s^3 + 11.52 s^2 + 6.224 s + 0.1914

But there seems to be no implementation in python.但是 python 中似乎没有实现。 Does anyone know where to find one?有谁知道在哪里可以找到一个?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM