LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

decimate a 2d array

I was wondering how I would decimate a 2d array into 3D with 24 pages
- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 1 of 4
(3,179 Views)
That's not really a decimation....
 
Have a look at "reshape array" in the array palette. It might just do what you need. 🙂
 
Of course there are infinite possibilities to slice&dice a 2D array so the exact procedure will depend on how things are arranged. Another possibility would be to use "array subset" in a loop, autoindexing to 3D at the right loop boundary.

Message Edited by altenbach on 03-09-2007 12:13 PM

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

Sorry about the first post, let me explain myself better.

I want to do as shown in the attached picture but from a 2D to 3D.

Reshape almost works except that what I want to do is have the first row and every 24th one after it be in the first page, and so on for the other 23 pages.

Message Edited by Beaton on 03-09-2007 02:26 PM

- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 3 of 4
(3,172 Views)
Well, there is probably a smarter way, but I would just Do the autoindexing, e.g. as follows:
 
 
You might still need to tweak it a bit.

Message Edited by altenbach on 03-09-2007 12:59 PM

Download All
0 Kudos
Message 4 of 4
(3,152 Views)