04-11-2017 05:42 PM
Dear Friends,
I am new in Lab view and trying to develop one of my first codes, I have 2 2d arrays which I would like to compare them and make 3rd array by bigger numbers,
1st array: 2 5 9
3 5 6
2nd array: 8 9 1
1 3 8
final array: 8 9 9
3 5 6
any help or suggestion from your side would be highly appreciated.
Best regards
Arvin
Solved! Go to Solution.
04-11-2017 05:54 PM
Look at the Max and Min function in the Comparison palette.
04-12-2017 07:05 AM
Thanks for your reply
Third array should be in the same size of two array and I would like to compare them element by element, That function gives me only the max and min
04-12-2017 07:12 AM
Did you try it?
RavensFan has the right answer.
04-12-2017 09:20 AM
@arvin1947 wrote:
Thanks for your reply
Third array should be in the same size of two array and I would like to compare them element by element, That function gives me only the max and min
You can certainly compare element by element if you put it into nested For Loops with auto-indexing turned on.
But that is not necessary as the function can take scalars and arrays of various dimensions as Taki showed you in his snippet.
04-13-2017 08:58 AM
Thanks so much 🙂