From: <Max...@go...> - 2010-12-14 21:00:18
|
Hi! Today I was quite confused with with ,---- | gnuplot -e "plot sin(2*pi*10*x); pause -1" `---- since it displays a sine with frequency of 1/10 and not 10. This is caused by aliasing (the sample rate is too low). That behaviour is very confusing to new users. Maybe it would be good to set the default sample-rate higher, e.g. 500 or sth? There's another thing I found out while examining the problem: With a sample count of 100 the plotted sine should actually have the frequency 0, which is a constant (follows from frequency domain considerations). Setting the samples to ,---- | set samples 101; | plot sin(2*pi*10*x); `---- gives a constant at 0, so I would think that the actual sample rate is one less than the set one. (I did not see throug the source). Thanks for your considerations, Max |