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

Home » Public Forums » archive » Re: plot dirac delta function?
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: plot dirac delta function? [message #49364 is a reply to message #49360] Wed, 19 July 2006 04:52 Go to previous messageGo to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
here's your discrete delta function:

x=fltarr(100)
x[50]=0.01
plot,x,psym=10

if you want a step function, do instead
x[50:99]=1


Ciao,
Paolo

Nic wrote:
> Hi all!
>
> I am new to IDL and learning how to do non analytic plots such as a
> dirac delta function or a finite square well. Does anybody have ideas
> of what tools I should use or keywords to get started in plotting
> these?
>
> thank you
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Irregular grid -> 2D binned
Next Topic: Re: LINUX IDL Install Help

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

Current Time: Fri Oct 10 19:47:13 PDT 2025

Total time taken to generate the page: 0.24262 seconds