2

我的代码:

(x, y, t) = mlab.psd(
    d,
    Fs=1.0 / h['xdelta'],
    NFFT=512)
psd = 20 * np.log10(y)
plt.plot(x, y, t)
plt.show()

我只是在执行时收到以下错误:

ValueError: shape mismatch: objects cannot be broadcast to a single shape.

我觉得这很简单,但我似乎无法让它发挥作用。我将如何解决这个问题?

4

0 回答 0