回答編集履歴
1
int()の範囲修正しました。
test
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
↓
|
4
4
|
|
5
|
-
plt.plot(freq[1:int(len(x)/2)], np.abs(yf[1:int(len(x)
|
5
|
+
plt.plot(freq[1:int(len(x)/2)], np.abs(yf[1:int(len(x)/2)]))
|
6
6
|
|
7
7
|
だと思います。
|