TypeError:无法将序列与'numpy.float64'类型的非整数(复数)相乘

2024-06-14 13:59:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图得到一个向量,如图中所述,包含一个复数,但我不能超过这个问题

v=1
 Frames=100
impulse_response[1:v ,: ] = (1 / np.sqrt(2 * v)) *(randn(v, Frames), 1j*randn(v, Frames)) 

我想要的结果是 enter image description here


Tags: framesresponsenpsqrt向量复数randnimpulse