LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
E.Okawa

Decimate Array function should have terminals that indicate the number of segments in which to decimate the array as well as the numbers of the elements to extract

Status: Declined

Any idea that has received less than 8 kudos within 8 years after posting will be automatically declined.

I have lost count of the number of times that I have tried to extract elements with a fixed interval from a 1D array and got frustrated because

my function ends up looking like the image below taking up a big chunk of my block diagram.

 decimate.png

Say you want to decimate the array into 20 segments and extract every third element like the image above. It would be nice if there was a function that allowed the user to input the number of segments into which the array should be decimated, as well as an array with the elements to be extracted. 

 

In the image below, the "Main array" is decimated into 4 segments, where every 1st and 3rd elements are extracted and outputted.

 

decimate.png

 

 I know this can be accomplished by using a reshape array function, making a 2D-Array and then pick a column but it would be nice to have this all in one function.

 

 

Message Edited by Laura F. on 12-01-2009 08:57 AM

___________________________________________________________
Eric Matsumoto Okawa
___________________________________________________________
"Draw a picture of yourself. Are you smiling?"
1 Comment
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 8 kudos within 8 years after posting will be automatically declined.