LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subtract a constant(x,y) from the elements of a 2D array

Hi
 
Can anyone tel me how I can subtract a constant (x,y) from the elements of a 2D array?
0 Kudos
Message 1 of 4
(3,174 Views)
(x,y) is not a simple constant, but at least two constants (x, and y). What kind of 2D array do you have.
 
Does it have exactly two columns (or rows) and do you want to subtract e.g. x from row 1 and y from row 2, for example?
 
Of course if the elements of your 2D array are e.g. xy clusters, you can just subtract the single xy cluster with an atomic subtract node. Other cases might need a loop.
 
Your question is not clear. Please attach a small VI containing typical data. Thanks!
0 Kudos
Message 2 of 4
(3,173 Views)

The VI is attached. I do not know if it is the correct way of doing it, could you please check it?

 

0 Kudos
Message 3 of 4
(3,163 Views)
Your VI does not contain a 2D array.
0 Kudos
Message 4 of 4
(3,154 Views)