04-24-2017 10:37 AM
Dear Friends,
I am comparing two arrays and would like to delete rows from the source array.
maybe following VI can explain better what I have in my mind.
I like to delete row :3 6 from missing elements array
I can't put in the same case structure and loop while it makes 3D array.
Regards
Arvin
Solved! Go to Solution.
04-24-2017 11:37 AM
I am actually more confused after looking at your VI. It would help if you supplied actual inputs and expected outputs.
04-24-2017 12:02 PM - edited 04-24-2017 12:04 PM
(posting by phone, cannot look at VI).
Also remember that after you delete row 3, the values of row 6 will have moved to a smaller index, for example.
04-24-2017 12:14 PM
my expecting output is be able to delete row 3 and 6
Thanks in advance
04-24-2017 12:15 PM
thanks for the hint but how can I delete two rows one array programmatically?
04-24-2017 12:16 PM
sorry for confusions, I'm trying to delete two rows programmatically
04-24-2017 12:30 PM
@altenbach wrote:
(posting by phone, cannot look at VI).
Also remember that after you delete row 3, the values of row 6 will have moved to a smaller index, for example.
In which case deleting starting with the largest index and working toward zero will work.
Arvin,
You did not include the data in the front panel so your question does not make sense.... particularly when you have 2D array not even used in your code and everything else is 1-D.
maybe post in your native language and let us do a Google Translate?
Ben
04-24-2017 12:30 PM - edited 04-24-2017 12:33 PM
Try a conditional tunnel
04-24-2017 12:43 PM
And if the rows to be deleted are sorted, you can start searching from the last found location (+1) to lower the big O complexity. 😄
04-24-2017 01:05 PM
Adding a "Super CA" Mod Just because I can always do better