如果我有如下功能:
G(s)= C/(S),其中s=jw,c和p是常数。
另外,可用的频率是wa= 100000 rad/s,如何在∆w = 0.0001wa的情况下对信号进行离散化?
发布于 2018-11-20 23:26:23
使用numpy.arange实现这一点:
import numpy as np
wa = 100000
# np.arange will generate every discrete value given the start, end and the step value
discrete_wa = np.arange(0, wa, 0.0001*wa)
# lets say you have previously defined your function
g_s = [your_function(value) for value in discrete_wa]https://stackoverflow.com/questions/53403060
复制相似问题