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

Home » Public Forums » archive » Re: meshgrid 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: meshgrid function [message #51119] Sun, 29 October 2006 08:12
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
CD writes:

> is there a idl way which is similar to the function meshgrid in matlab
> to generate the x,y arrays of all the possible coordinates?

If I read the documentation of MESHGRID correctly, something
like this would work:

xarr = x # Replicate(1, N_Elements(y))
yarr = Replicate(1, N_Elements(x)) # y

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Previous Topic: Math Question
Next Topic: NaN & mpfit question..

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

Current Time: Sat Oct 11 16:13:51 PDT 2025

Total time taken to generate the page: 1.19811 seconds