Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: array conca...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 9 Topic 5605 of 6400
Post > Topic >>

Re: array concatenation in 2-D

by "R.G. Stockwell" <nothanks@[EMAIL PROTECTED] > Apr 4, 2008 at 01:27 PM

"elwood" <epolomsk@[EMAIL PROTECTED]
> wrote in message 
news:16c1abdd-df95-48b4-8bde-3310d5d19409@[EMAIL PROTECTED]
>
> 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
>


If it is always 2 columns by whatever rows, then just concatenate the 
arrays.
(you may have to do some tranposes)

If there is a variable number of columns, then as David says, pointers.

Cheers,
bob
 




 9 Posts in Topic:
array concatenation in 2-D
elwood <epolomsk@[EMAI  2008-04-04 11:38:54 
Re: array concatenation in 2-D
David Fanning <news@[E  2008-04-04 12:57:21 
Re: array concatenation in 2-D
"R.G. Stockwell"  2008-04-04 13:27:03 
Re: array concatenation in 2-D
David Fanning <news@[E  2008-04-04 13:40:09 
Re: array concatenation in 2-D
Jean H <jghasban@[EMAI  2008-04-04 13:31:13 
Re: array concatenation in 2-D
"ben.bighair" &  2008-04-04 14:25:35 
Re: array concatenation in 2-D
elwood <epolomsk@[EMAI  2008-04-08 18:19:27 
Re: array concatenation in 2-D
Jean H <jghasban@[EMAI  2008-04-09 09:44:29 
Re: array concatenation in 2-D
Spon <christoph.blau@[  2008-04-08 23:37:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 10:06:38 CST 2008.