05-16-2020 07:52 AM
I have a 1D array:
I want to combine the first 2 digits into a single digit to get:
Can't seem to find a way of doing this.
Solved! Go to Solution.
05-16-2020 08:08 AM
05-16-2020 08:12 AM
There are probably ways of simplifying this but as I don't know exactly what the use case is I have just shown you how you could do exactly what you have asked.
05-17-2020 11:35 AM - edited 05-17-2020 11:37 AM
05-17-2020 11:45 AM - edited 05-17-2020 12:05 PM
Your question is ambiguous because you don't even define the datatype of the array (numeric or string).
Assuming the simplest possibility, here's my solution. No need for any math:
Next time try to define the problem better. It would have helped tremendously if you would have attached a small VI containing typical data. Can you guarantee that all array elements contain single numeric digits? Can they be negative? If the first element is zero, do you want to display the leading zero in the result? Are hex digits allowed? So many unanswered questions!