LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

turning a 3D array into a 2D array

Solved!
Go to solution

Hi, is there a way to turn a 3D array (containing 4 pages of data, 4 rows each) into a 2D array of 16 rows of data? i have tried the reshape array, however when i wire in the 3d array into it and constants of 0 and 1 the 2D array i get out has only 2 elements. 

 

i need to manipulate data using mathscript and do comparisons withinthe rows, so its important to havethe data in a way that mathscript can recognise.

 

 

thanks a lot.!

 

asiri  

0 Kudos
Message 1 of 6
(4,734 Views)

Hi Radioman00

 

You can try this code:

 

Then you should get that what you want to have.

 

Try and tell me if it worked.

 

 

raphi

0 Kudos
Message 2 of 6
(4,727 Views)
Solution
Accepted by topic author Radioman00

You can wire (pages x rows) to the first dimsize input of Reshape Array, and wire columns to the second dimsize input of Reshape Array.

3D to 2D.png

帖子被DSPmchen在 08-13-2009 04:43 AM
时编辑过了
Message 3 of 6
(4,726 Views)

i managed to solve it, tho i don't know how efficent my method is compared to others, i am fairly new to labview.

 

thanks a lot for the suggestions! 🙂  

0 Kudos
Message 4 of 6
(4,694 Views)
sorry DSP, didnt realise that you had presented the same solution. Thanks! 
0 Kudos
Message 5 of 6
(4,678 Views)

For my purpose its work perfect! Great! Thanks a lot !

0 Kudos
Message 6 of 6
(3,122 Views)