miri Posted July 26, 2010 Report Posted July 26, 2010 Hello! I have 2 2-D numeric arrays. I need to do some math with each relative cells. for example cell (0,0) of both arrays, until cell (8,8). How can I get the value of the cells? Thanks for any help, Miri try.vi Quote
crossrulz Posted July 26, 2010 Report Posted July 26, 2010 Have you looked at the Array Subset Function? Quote
miri Posted July 26, 2010 Author Report Posted July 26, 2010 Yes, As you can see in try.vi I use the subset function. My inputs should be two 2D arrays 8X8. And Array3 like I understand should be the merge of them. I think the first problem is somewhere here - What kind of array - array3 should be in that case? Thanks Quote
crossrulz Posted July 26, 2010 Report Posted July 26, 2010 What exactly do you mean by "merge"? Are you looking for a 3D array or a concatenation? It really depends on what the data is and what you are doing with it (post processing algorithms, save to disk, etc.). Quote
miri Posted July 27, 2010 Author Report Posted July 27, 2010 The Data is positive numbers (0-3000). I have two arrays 8X8 with that data. I need to subtract,add,divide same cells in both arrays. Quote
jgcode Posted July 27, 2010 Report Posted July 27, 2010 I need to subtract,add,divide same cells in both arrays. Hi Miri The LabVIEW math operators are polymorphic meaning they accept different datatypes. You can actually just wire the 2D Numeric Arrays straight to them and you will be doing that maths operation on the same cell in each array. The result will be a 2D Numeric Array. Two flavors: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.