LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to splite a 2D array to tow 1D array?

hi,
   i am a new comer here. i want to know that how can i splite a 2D array to tow 1D array. Take the following array for example:
the original array A is:  1  2 
                                     3  4
   so my purpose is to splite this array A into tow array just like these:
array B:  1  2
 
array C:  3  4
 
 Could anybody help me! Thanks in advance!
0 Kudos
Message 1 of 4
(3,067 Views)

You can just use two Index Array functions. One to get row 0 and the other to get row 1.

Message Edited by Dennis Knutson on 11-26-2006 08:20 AM

0 Kudos
Message 2 of 4
(3,066 Views)

Actually, a single Index Array works just as well.Smiley Wink

Message Edited by Dennis Knutson on 11-26-2006 08:40 AM

0 Kudos
Message 3 of 4
(3,060 Views)
Hi,

and in case you need just rows starting with index 0 you can even remove the indexes from the 'index array' function 🙂
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(3,040 Views)