Adding or deduct values in a ARRAY [message #52162] |
Fri, 19 January 2007 05:08 |
Erik[1]
Messages: 23 Registered: December 2006
|
Junior Member |
|
|
Hi Folks,
I have a (assumable) simple question. I have an array like this:
ARR1 FLOAT = Array[3, 4]
93.0000 118.000 0.000000
93.0000 73.0000 0.000000
151.000 73.0000 0.000000
151.000 118.000 0.000000
The array contain's four [x,y,z] coordinates. Now I want all the X
coordinates lowered by 10. The result should be:
ARR1 FLOAT = Array[3, 4]
83.0000 118.000 0.000000
83.0000 73.0000 0.000000
141.000 73.0000 0.000000
141.000 118.000 0.000000
I've tried ARR1-10 but then all the values are deducted by 10.
When I try ARR1[*,*,*] - 10, then I've get an array with all the X/Y/Z
values lowered.
When I try ARR1[*,0,0] - 10, then I've get an array with with only 3
dimensions float[3]
How can I select a specific dimension to edit so I can get the result
which is described above.
Thanks in advance!!
Erik
|
|
|