05-21-2015 03:39 AM - edited 05-21-2015 03:39 AM
05-21-2015 06:21 AM
@GerdW wrote:
Hi camr,
as long as you only show the FP we will not be able to spot the problems in your BD…
Doh!
i cannot attach the program so here is the image. i just focus on what i need which is the subset array
i am not a programmer and quite lost with labview terminologies
so please be patient with me
i encircled here where the splitting of subset array doesnt work
05-21-2015 09:39 AM - edited 05-21-2015 09:39 AM
Something like this?
05-21-2015 01:13 PM - edited 05-21-2015 01:45 PM
@camr_tna wrote:
i encircled here where the splitting of subset array doesnt work
Are the X values always guaranteed to be sorted?
In any case, you could use two conditional output tunnels in the little FOR loop (where the condition depends in the scalar x comparison inside the loop) to form the two desired 2D arrays. No splitting needed later.
Even works if the x-array is not sorted.
05-21-2015 07:54 PM
Other way with 2D array (similar to Crossrulz approach):