Jump to content

2D arrays


Recommended Posts

Posted

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

Posted

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

Posted

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.).

Posted

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.

Posted

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:

post-10325-061605600 1280223142_thumb.pn

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.