0

我在 python 中使用“lcapy”库来计算给定函数 H(z) 的 Z 逆变换。问题是 'IZT()' 的 h(n) 输出看起来像是用于显示的符号输出,我无法将其绘制或处理为 python 中的典型数组或数字。

一个例子是,当我只想为有限数量的 ns 绘制 h(n) 时,我收到以下错误: TypeError: float() argument must be a string or a number, not 'DiscreteTimeDomainExpression'

例如,如果有人指导我如何将h=H.IZT()的输出转换为n=1的典型数字,那就太好了。非常感谢您提前提供的任何帮助。

4

0 回答 0