LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find the max and min value for each column of a 2d array?

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(4,514 Views)
Solution
Accepted by topic author chuck72352

Chuck,

 

With the color on your bars, you should have enough experience to figure this out.  Smiley Wink

 

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.

Message 2 of 6
(4,512 Views)

Thank you. My solution is attached.

0 Kudos
Message 3 of 6
(4,503 Views)

Do not wire up both the N terminal and use auto-indexing.

Message 4 of 6
(4,492 Views)

Done with suggested improvements.

 

Thank you.

0 Kudos
Message 5 of 6
(4,484 Views)

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)


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 6 of 6
(4,463 Views)