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

Home » Public Forums » archive » Re: printing an array from pointers
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: printing an array from pointers [message #48190 is a reply to message #48121] Tue, 28 March 2006 23:55 Go to previous message
bressert@gmail.com is currently offline  bressert@gmail.com
Messages: 8
Registered: February 2006
Junior Member
Hi Peter,

Another question, since I have ran into a new bump. Is there a way to
say

arr = fltarr(A,8)

where A is a number that fluctuates? So rather than stating that arr is
A rows long, it is a number determined by the total output of the for
loop? For example,

arr = fltarr(150,8)

will be sufficient in gathering all the 'for' outputs, but I will have
trailing zeros that have not been assigned an output value. Using UNIQ
or an 'if' to get rid of the zeros in the array does not work, since
some of the output from the 'for' loop is zero. This was the original
reason why I used the pointers, since there was no requirement of
predetermination of the number of rows. Any suggestions or ideas would
be greatly appreciated. Thanks again for the help.

Cheers,

Eli
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: What is the algorithms of sort function and where function?
Next Topic: Re: zoom screen id on envi_display_bands

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

Current Time: Wed Oct 08 19:27:45 PDT 2025

Total time taken to generate the page: 0.00445 seconds