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

Home » Public Forums » archive » Re: Adding or deduct values in a ARRAY
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: Adding or deduct values in a ARRAY [message #52156] Fri, 19 January 2007 08:37 Go to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
On Fri, 19 Jan 2007 17:36:43 +0100, Wox <nomail@hotmail.com> wrote:

> On 19 Jan 2007 05:32:26 -0800, "Erik" <janssen.e@gmail.com> wrote:
>
>> These are the good values, however as stated before I want the array to
>> stay a [3,4] array with the old Y and Z values still stored in it.
>
>
> IDL> arr1=indgen(3,4)
> IDL> print,arr1
> 0 1 2
> 3 4 5
> 6 7 8
> 9 10 11
> IDL> arr1[0,*]-=10
> IDL> print,arr1
> -10 1 2
> -7 4 5
> -4 7 8
> -1 10 11


OK, you got it :-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Adding or deduct values in a ARRAY
Next Topic: Avoiding loop stats

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

Current Time: Wed Oct 08 13:31:00 PDT 2025

Total time taken to generate the page: 0.00419 seconds