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

Home » Public Forums » archive » array concatenation in 2-D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
array concatenation in 2-D [message #59630] Fri, 04 April 2008 11:38 Go to previous message
elwood is currently offline  elwood
Messages: 23
Registered: February 2007
Junior Member
I have a loop which calculates two variables x[i] and y[i]

At each iteration of the loop I calculate
x and y
And I'd like to concatenate x and y into a 2 column, unknown numbers
of rows
output array.
I'd like to dynamically grow the output array at each interation.

For example:
x=1 y=5 on first iteration
x=2, y=6 on 2nd iteration
I want an output array that looks like the below:

1 5
2 6

How do i achieve this without knowing the array size??


Tx!
-Elisha
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: aster 1A -
Next Topic: Re: fastest way to find the first non-zero value in an array

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

Current Time: Thu Oct 09 06:50:48 PDT 2025

Total time taken to generate the page: 0.64003 seconds