LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Element at every 3rd Iteration of a 2D array


@cbutcher wrote:

Jeff·Þ·Bohrer wrote:

 

Missed the specs there cb

Capture Start.PNG


I did? Below is my modified snippet, doing the actual task here - I had thought people were avoiding "ready-to-use solutions" at GerdW's suggestion, but it seems there are several to choose from now.

3rdElement.png

 

Nice reshape though... very slim. I wonder if it's slower though - does the Reshape Array just alter dimension sizing, whilst your for loop copies into a new array? I don't know...


That is one for another thread.  BUT, that compiler is getting REALLY smart.  (I suspect my snip returns a "subarray" so no buffers are allocated, just a new ref to the subarray in memory) 

Spoiler
It makes my head hurt too

"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 11
(355 Views)