赞
踩
返回周期性方波波形
- import numpy as np
- from scipy import signal
- import matplotlib.pyplot as plt
-
- x = np.arange(0, 10, 0.1)
- y = np.sin(x)
- y1 = signal.square(y)
-
- plt.subplot(211)
- plt.plot(x, y)
- plt.subplot(212)
- plt.plot(x, y1)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。