LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview combine two 1D array into 2D array and merging 2D array

why aren't you just doing this:

build array.png


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 15
(3,574 Views)

Hi guys thank for all your help!!! I had successfully created my 2D array but now I have a problem how do I combine the 2D array with another column of data(maximum) which I acquire from some calculations?

here is what I am trying to get:

 

0     0.9236    0.2132

5     1.2653    0.1565

10   1.1940    0.9875

15   1.2691    0.9874

20   0.9987    0.6663

25   1.4567    0.2945

30   1.9746    0.1236

35   1.3445    0.2568

40   1.9953    0.1459

.         .            .

.         .            .

.         .            .

255  1.4372   0.1278

 

I need them to be side by side. Because I need to get the highest maximum value and return the correspond row then use the value inside the row for other calculation.

 

currently I have a 2D array:

0     0.9236  

5     1.2653  

10   1.1940  

15   1.2691  

20   0.9987    

25   1.4567    

30   1.9746   

35   1.3445    

40   1.9953    

.         .           

.         .          

.         .           

255  1.4372  

 

and a 1D array:


0.2132

0.1565

0.9875

0.9874

0.6663

0.2945

0.1236

0.2568

0.1459

    .

    .

    .

0.1278

 

How can I do this?


0 Kudos
Message 12 of 15
(3,555 Views)

The same way just build the 2D and 1D array.

 

2D+1D Array.png

-----

The best solution is the one you find it by yourself
0 Kudos
Message 13 of 15
(3,549 Views)

So I combine and transpose array?

0 Kudos
Message 14 of 15
(3,543 Views)

Yes if required you need to transpose the array.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 15 of 15
(3,541 Views)