From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two matrix and get maximum values out of matrix

I have matrix A as 3*3

and matrix B as 3*3

 

 and want matrix C as max elements out of A and B

 

A=

 

B.png

B=

C.png

C=max(A,B) elements

A.png

0 Kudos
Message 1 of 4
(995 Views)

You'll have to give us more details than this.

 

Based on your A and B, I don't see how you get C.

 

For example, in col3 row3, how do you get 9?  I don't see a 9 anywhere in either A or B!

0 Kudos
Message 2 of 4
(971 Views)

I think you swapped B and C in your image.

0 Kudos
Message 3 of 4
(960 Views)

Once you swap the values of your B and C, here's what you can do ... (using this function)

 

altenbach_0-1610582930238.png

 

 

0 Kudos
Message 4 of 4
(957 Views)