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.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 8 kudos within 8 years after posting will be automatically declined.