ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2d array

Solved!
Go to solution

Hi,

 

Kind of a noob here. So here is what I want:

 

All 2d arrays -

 

Array 1: Array2: Appended Array:

 

0,1,2 6,7,8 0,1,2,6,7,8

3,4,5 9,10,11 3,4,5,9,10,11

 

So I know I can do this by indexing both input arrays and then appending them and then build another 2d array. My question is, is there a way to do this that is nice and neat and not so convoluted?

 

Thanks for any help. 

0 Kudos
Message 1 of 5
(6,224 Views)
Solution
Accepted by Tarek316

How about this?

 

BuildMatrix.png

 

Edit:  I should mention that the matrix to array conversion is only there to hide a coercion dot.  It still exists, just inside that VI.

Message Edited by Darin.K on 12-10-2009 03:38 PM
Message 2 of 5
(6,218 Views)

Dude your awesome! Works like a champ.

 

I have never used Matrix stuff before. Probably going to need to look into it further.

 

From a speed and memory stand point,  is this pretty efficient?

0 Kudos
Message 3 of 5
(6,206 Views)

Another option...

 

Image.jpg

 

JM

Message 4 of 5
(6,202 Views)

Tarek316 wrote:

Dude your awesome! Works like a champ.

 

I have never used Matrix stuff before. Probably going to need to look into it further.

 

From a speed and memory stand point,  is this pretty efficient?


 

I have yet to see any performance issues with the matrix functions, or at least not any that aren't similar or worse with their array counterparts.

Message 5 of 5
(6,182 Views)