MATLAB Projects

How can I find each max element of three matrices as new matrix?

Maybe the question is a little bit confused, I'll make an example below.

Let's say I have a 3 matrices a, b, c with same size. [code] a = [2, 5; 6, 9]; b = [3, 3; 8, 1]; c = [5, 5; 2, 7];[/code] How can I get the new matrix max with each max element in all three matrices?
[code]max = [5, 5; 8, 9][/code] I know I could create logical matrix like a>b and then do the math, calc it out, is there any other more efficient way to do it?


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir