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

Home » Public Forums » archive » 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
printing an array from pointers [message #48125] Tue, 28 March 2006 00:12 Go to previous message
bressert@gmail.com is currently offline  bressert@gmail.com
Messages: 8
Registered: February 2006
Junior Member
Hello Everyone,

I am currently writing a short script using pointers. The script's
objective to create an array created by a loop of commands and then
print it into an ascii file. Below is an outline of how the pointers is
being used. Bear in mind, the problem that I am having is printing all
the pointers in a long list.

=====================================
PRO EXAMPLE

ptr = ptrarr(10)

for i = 0, 9 do begin
etc .....
arr = (some 1 by 8 vector)
ptr( i ) = ptr_new(arr)
endfor

print, ptr <------ this is where im having the problem
======================================

I know that "print, *ptr( some number between 0 and 9 )" works, but
this will only print a 1 by 8 vector. What I really want is a 10 by 8
matrix.

Would anyone know where I should go from this stage? Thank you for your
help in advance.

Eli
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDLgrPalette woes
Next Topic: IDLgrPalette woes

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

Current Time: Fri Oct 10 15:43:55 PDT 2025

Total time taken to generate the page: 1.04435 seconds