search for: undersamplinginterval

Displaying 1 result from an estimated 1 matches for "undersamplinginterval".

2006 Mar 13
1
Newbie error or bug?
...have found a bug. The script is as follows: #truesamplingfreq <- 1000*5.5 freqin1msec = 5.5 #aliassamplingfreq <- 1000*2.5 aliasfreqin1msec = 2.5 drawingpoints = 10000 time = (0:drawingpoints)/drawingpoints signal = sin(freqin1msec*2*pi*(time)) alias = -sin(aliasfreqin1msec*2*pi*(time)) undersamplinginterval = max(time)/8 seq (0, max(time), by=undersamplinginterval) -> undersamplingtimes undersampled = sin(freqin1msec*2*pi*undersamplingtimes) plot(time,signal,type="l", col="blue", xaxs="r", yaxs="r", xlab="Time (msec)", ylab="Signal", main...