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

Home » Public Forums » archive » Re: How to increase array size by 1
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: How to increase array size by 1 [message #72022 is a reply to message #72021] Wed, 04 August 2010 12:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Fermiona Fermiona writes:

> I have a 2D array:
>
> xyz = fltarr (5,Size)
>
> How can I increase the number of rows to Size+1?

IDL> size = 8
IDL> xyz = fltarr (5,Size)
IDL> xyz = [ [xyz], [fltarr(size)] ]
IDL> help, xyz
XYZ FLOAT = Array[5, 9]

You can find more on "Array Concatenation" here:

http://www.dfanning.com/tips/array_concatenation.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to increase array size by 1
Next Topic: Re: select first n elements of array without loop

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

Current Time: Wed Oct 15 16:19:19 PDT 2025

Total time taken to generate the page: 1.67929 seconds