LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

starting point of array

i have a 1d array,let say it gos from 0-1000, i want to take out the portion of 200-600,

my  qstn is, how do i specify the starting pt and length?

 

0 Kudos
Message 1 of 4
(2,872 Views)

Use the "Array Subset" function.

 

0 Kudos
Message 2 of 4
(2,871 Views)

Use "Array Subset" to get at that part of the array; use "Delete From Array" to remove that part and return a modified array.

 

Jm

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

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

retroscience wrote:

i have a 1d array,let say it gos from 0-1000, i want to take out the portion of 200-600,


"take out" can mean many things, so you should be a bit more clear.

  1. Do you want to take the subset of elements 200-600 for futher processing. Here "array subset" is correct and you'll get a new array  of size=401 where element #0 is the old element #200, etc.
  2. Do you want a new array of size=600 with elements 200-600 missing so the new element at index=200 would have the value of element #601 in the original data. Here "delete from array" would be correct.
  3. Do you want to Keep the array the same size, but set elements 200-600 to zero or NaN? In this case "replace array subset" would be correct.

 Please clarify what you want. 🙂

 

0 Kudos
Message 4 of 4
(2,815 Views)