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

Home » Public Forums » archive » Change array elements
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Change array elements [message #94065] Thu, 12 January 2017 18:06 Go to next message
smnadoum is currently offline  smnadoum
Messages: 24
Registered: June 2016
Junior Member
Hi IDL users,

I have an array that is [4,3] and I am trying to change the elements in this array to 13. I used:
print, b, SHIFT(b, 13)
and
replicate_inplace, b, 13

the first method didn't change the elements to 13, but actually changed the dimensions of the array.
the second one changed the values in the array to 13 without changing the dimensions.


what is a good method to change the elements in an array?
Thanks
Re: Change array elements [message #94067 is a reply to message #94065] Thu, 12 January 2017 21:41 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Thursday, January 12, 2017 at 9:06:28 PM UTC-5, Cheryl wrote:
> Hi IDL users,
...
> what is a good method to change the elements in an array?
> Thanks

B[*,*] = 13
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL consultant available for work (more than usual!)
Next Topic: boundary of a masked region

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

Current Time: Wed Oct 08 15:13:38 PDT 2025

Total time taken to generate the page: 0.00488 seconds