The max matrix of two matrices
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
S. David
am 7 Aug. 2014
Bearbeitet: Praveen Pawar
am 6 Mär. 2018
Hello,
If I have two N-by-N matrices A and B, how can I find the N-by-by matrix C such that its (m,n)th element is the max of the (m,n)th element in A and the (m,n)th element in B?
Note: I don't want to use a for loop because N is quiet large.
Thanks
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Praveen Pawar
am 6 Mär. 2018
Bearbeitet: Praveen Pawar
am 6 Mär. 2018
If I have two vectors of dimension (X,1) and (Y,1). I want to compare (x1,y1), (x2,y2) and so on and store the larger number in another vector. How to do this?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!