01-01-2013 06:57 PM
How do I find the max and min value for each column of a 2d array?
For example in the attached array max/min for the first three columns would be 45/23, 14/10, 80/67.
Thank you
Solved! Go to Solution.
01-01-2013 07:03 PM
Chuck,
With the color on your bars, you should have enough experience to figure this out.
You are looping through the array already. Now you just need a function like Array Max and Min. in the loop. And perhaps you might need to Transpose the 2D array.
01-01-2013 07:39 PM
Thank you. My solution is attached.
01-01-2013 08:38 PM
Do not wire up both the N terminal and use auto-indexing.
01-01-2013 08:53 PM
Done with suggested improvements.
Thank you.
01-02-2013 07:13 AM
Your FOR loop on the bottom still has N wired while use the autoindexing.
Plus, are you sure you want your shift register uninitialized? Your array will just keep growing. (I don't know how you plan to use this VI, so I'm just pointing it out as something to watch out for)