how to display in one variable the max of each one of two arrays?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MIGUEL HERNANDEZ
am 17 Sep. 2016
Beantwortet: Star Strider
am 17 Sep. 2016
a=[5 10 15]
b=[20 25 30]
c= ?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Star Strider
am 17 Sep. 2016
Concatenate the vectors inside the max function call:
a = [5 10 15];
b = [20 25 30];
c = max([a; b], [], 2)
c =
15
30
0 Kommentare
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!