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

Home » Public Forums » archive » Programming style
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Programming style [message #11744] Fri, 15 May 1998 00:00
pford is currently offline  pford
Messages: 33
Registered: September 1996
Member
I have a general style/algorithm question.

I want to plot in a 3-D array an ellipsoid within an in ellipsoid where the
voxels between the boundaries are non-zero and else where zero.

The general function is (x/a)^2 + (y/b)^2 + (z/c)^2 = 1.0

I have already done this using for loops and conditional statements but it
occurred to me that there may be some IDL matrix-boolean logic combination
that could accomplish this in a faster and more 'elegant' fashion.

I am now open for suggestions?

Thanks in advance.

Patrick Ford, MD
Department of Radiology
Baylor College of Medicine
pford@bcm.tmc.edu
[Message index]
 
Read Message
Previous Topic: Re: PS file and annotate.pro?
Next Topic: PS file and annotate.pro?

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

Current Time: Fri Nov 28 13:11:38 PST 2025

Total time taken to generate the page: 0.10482 seconds