cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Extracting a smaller array from a larger array

Solved!
Go to solution
Highlighted

Extracting a smaller array from a larger array

Greetings,

I can't seem to figure out how to do this, but it seem simple enough on paper.
I have an array with N rows and 48 Columns.
Where N>301

 

I want to extract the last 301 rows from this Nx48 array. (So rows N-300 to N)
How can I do that?

0 Kudos
Message 1 of 4
(170 Views)
Solution
Accepted by topic author nlis12
09-13-2017 06:30 PM

Re: Extracting a smaller array from a larger array

You can use Delete From Array and delete the first 300 rows.  The remaining rows will be returned to you. 

aputman
LabVIEW 2012
LabVIEW Programming
Message 2 of 4
(158 Views)
Solution
Accepted by topic author nlis12
09-13-2017 06:29 PM

Re: Extracting a smaller array from a larger array


nlis12 wrote:

I want to extract the last 301 rows from this Nx48 array. (So rows N-300 to N)
How can I do that?


Use Delete From Array and only wire the length for the row.  Leave the Index unwired and it will default to deleting from the end of the array.  So the Deleted Subset is actually what you want to keep.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

The discussions from the Advanced User Track is not over. Join in the conversation: 2016 Advanced Users Track
Message 3 of 4
(134 Views)

Re: Extracting a smaller array from a larger array

So simple thanks!

0 Kudos
Message 4 of 4
(127 Views)