how to display in one variable the max of each one of two arrays?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MIGUEL HERNANDEZ
il 17 Set 2016
Risposto: Star Strider
il 17 Set 2016
a=[5 10 15]
b=[20 25 30]
c= ?
0 Commenti
Risposta accettata
Più risposte (1)
Star Strider
il 17 Set 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 Commenti
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!