08-11-2011 02:06 AM
hyul,
Describe the functionality again please.
If a number in the first row repeats in the any other rows, do you need to remove the ENTIRE ROW or THAT PARTICULAR REPEATING ELEMENT ALONE??
08-11-2011 02:19 AM
i want to delete only the number not the entire row!
In fact i search the first number and i delete all the other.
here there is a small example witch explain what i want
08-11-2011 02:59 AM
In the VI i attached, Since, i am deleting elelments in the array, the each rows size will not be same. So, each row will be appended by some zeros. Is that OK?
08-11-2011 03:01 AM
i'm sorry but i cam't run it because i use labview 8.5, can you change the version of the VI?
08-11-2011 03:03 AM
Sorry, I forgot.
Here it is..
08-11-2011 03:16 AM
this is perfect, it's works
now i can continue my program
thanks a lot
03-02-2015 06:16 PM
good one my frien!
03-30-2019 12:17 AM
HOW DO YOU DO THAT WITH A 2D STRING ARRAY?
tHANKS
08-13-2019 06:33 AM
Prefer Using My solution & give me if any bugs
08-13-2019 10:19 AM - edited 08-13-2019 11:03 AM
@rkbkgk wrote:
Prefer Using My solution & give me if any bugs
(First of all, this is not a solution because the input is not a 2D array as discussed.)
Your solution also scales very poorly for large input arrays (O(n²) because for each iteration, you start searching from the beginning, i.e. the first element gets touched over and over (N times!). In LabVIEW 2019, I would probably go with a "set" based solution if performance is a concern. Here's how that could look like (But LabVIEW 2019 already includes that array functionality as a vim :)). For the 2D case, you would just index out the key element and check the set.
Other solutions are also possible if output order is not important, e.g. if the input array is or can be sorted.