Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- from scipy import signal as sg
- pi = np.pi
- fs = 80000
- f = 2000
- phase = pi
- A = 0.5
- dur = 0.002
- Tp = 1/fs
- t = np.arange(0,dur+Tp,Tp)
- y = A*sg.sawtooth(2*pi*f*t+phase)
- plt.plot(1000*t,y)
- plt.xlabel("Czas trwania sygnału [ms]")
- plt.ylabel("Amplituda [V]")
- plt.grid()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement