comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: A problem using IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: A problem using IDL? [message #60079] Fri, 02 May 2008 09:20 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
a bit better code. The top plot is the aliased signal.
The bottom shows the well sampled (not aliased) signal, which
is sampled much more finely. The thick squares show the aliased
signal from the top plot.



window,xsize=800,ysize=400
min=0
max=100
n=205
x=fltarr(n+1)
for i=0,n do x[i]=min+double(i)*(max-min)/n
;print,x
y=sin(2*3.141593*x)



!P.multi=[0,1,2]

plot,x,y,psym=-4,xr=[0,10]
x1 = x
y1 = y




n=205*8
x=fltarr(n+1)
for i=0,n do x[i]=min+double(i)*(max-min)/n
;print,x
y=sin(2*3.141593*x)


plot,x,y,psym=-4,xr=[0,10]
oplot,x1,y1,psym=6,thick=4

end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: ProductLog function
Next Topic: idl array question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:26:26 PDT 2025

Total time taken to generate the page: 0.00401 seconds