how to display in one variable the max of each one of two arrays?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MIGUEL HERNANDEZ
le 17 Sep 2016
Réponse apportée : Star Strider
le 17 Sep 2016
a=[5 10 15]
b=[20 25 30]
c= ?
0 commentaires
Réponse acceptée
Plus de réponses (1)
Star Strider
le 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 commentaires
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!