Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69366

Split an array in more part depending of a comparison

$
0
0

Hi to everyone, 

 

I have a problem. 

Starting from 2 arrays I would like to split one based on the values of the second one. 

 

Ex. A= [ 1 2 3 4 5 6 7 8 9 10] B = [ 3 8 ] 

Result arrays wanted:  C = [ 1 2 3] D= [ 4 5 6 7 8] E=[ 9 10 ]

 

The lengths of the two array are variable.  

Do you have any suggestions? 

 

Thank you so much in advance. 

 

Rebecca 

 


Viewing all articles
Browse latest Browse all 69366


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>