Change array elements [message #94065] |
Thu, 12 January 2017 18:06  |
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
|
|
|
|