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

Home » Public Forums » archive » Re: basic soubt with fltarr
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: basic soubt with fltarr [message #30210 is a reply to message #30188] Wed, 10 April 2002 08:43 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Muks Raju wrote:

> Hello all...i have a basic doubt with fltarr. I have this fltarr
> Actuator = fltarr(100,4)
>
> now i need to remove the first 3 columns. How do i do this. Also i may

Actuator = Actuator(*,3)

Unfortunately, this result in a 2-D array with a trailing dimension of
1, which gets automatically converted by IDL into a 1-D array. I don't
know of any way around that.

> need to add 3 columns at the beginning and at the end ...

Actuator = [ [fltarr(100,3)], [Actuator], [floatarr(100,3)] ]

> ...or maybe a column
> of data in the middle.

Actuator = [ [Actuator(*,0:1)], [fltarr(100,1)], [Actuator(*,2:3)] ]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL5.5 XROI problem...
Next Topic: Re: In Praise of HISTOGRAM

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

Current Time: Thu Oct 09 21:52:42 PDT 2025

Total time taken to generate the page: 0.24860 seconds