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

Home » Public Forums » archive » Re: Problem with dist function in 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: Problem with dist function in IDL [message #55314 is a reply to message #55308] Mon, 13 August 2007 03:06 Go to previous messageGo to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
ATKT wrote:
> Can somebody tell what exactly dist function is doing in IDL
> e.g x=dist(2,2)
> 0.000000 1.00000
> 1.00000 1.41421
> What is the meaning of this ouput
> x=dist(4,4)
> 0.000000 1.00000 2.00000 1.00000
> 1.00000 1.41421 2.23607 1.41421
> 2.00000 2.23607 2.82843 2.23607
> 1.00000 1.41421 2.23607 1.41421
>
> I am unable to understand the out put which is being generated.
>

A graphical representation is also always useful...

loadct,5
tvscl,shift(dist(512,512),256,256)


Ciao,
Paolo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: controlling widget layout
Next Topic: xyouts for iPlot?

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

Current Time: Thu Oct 09 07:21:19 PDT 2025

Total time taken to generate the page: 1.36615 seconds