Changeset 6819
- Timestamp:
- Apr 16, 2009, 9:18:06 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy_misc/tools/demos/matplotdemo3.py
r3187 r6819 1 from Numeric import arange, sin, exp, pi 1 import numpy as num 2 2 from pylab import randn, conv, plot, psd, subplot, show 3 3 … … 5 5 # Create signal 6 6 dt = 0.01 7 t = arange(0, 10, dt) # Time vector8 signal = 0.1* sin(2*pi*t)7 t = num.arange(0, 10, dt) # Time vector 8 signal = 0.1*num.sin(2*num.pi*t) 9 9 10 10 # Create noise 11 noise = conv(randn(len(t)), exp(-t/0.05))*dt11 noise = conv(randn(len(t)), num.exp(-t/0.05))*dt 12 12 noise = noise[:len(t)] 13 13
Note: See TracChangeset
for help on using the changeset viewer.