|
|
2
0.5 + --- sin(2πt)
π
|
set xlabel "time"
set samples 4000
show xlabel
set ylabel "Signal strength"
show ylabel
plot [t=0:5.1] [-0.2:1.2] \
0.5 + \
(2.0/pi)*( \
sin(2.0*pi*t) \
+ (1.0/3) *sin( 6.0*pi*t) \
+ (1.0/5) *sin(10.0*pi*t) \
+ (1.0/7) *sin(14.0*pi*t) \
+ (1.0/9) *sin(18.0*pi*t) \
+ (1.0/11)*sin(22.0*pi*t) \
+ (1.0/13)*sin(26.0*pi*t) \
+ (1.0/15)*sin(30.0*pi*t) \
+ (1.0/17)*sin(34.0*pi*t) \
+ (1.0/19)*sin(38.0*pi*t) \
+ (1.0/21)*sin(42.0*pi*t) \
+ (1.0/23)*sin(46.0*pi*t) \
+ (1.0/25)*sin(50.0*pi*t) \
)
|
Try removing some higher frequencies (edit the file and reload) and see how the plot changes....
|
Note:
|
|
|
|
|
|