Selecting maximum values from every column in a matrix
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I have a matrix of values and would like to select the highest value in every column and save it into a 1D array. Any help would be appreciated.
Cheers,
Alex
0 commentaires
Réponse acceptée
Vishal Rane
le 11 Mar 2013
Modifié(e) : Vishal Rane
le 11 Mar 2013
1 commentaire
Eren Atar
le 14 Juin 2022
A = rand(24*60*60,1);
B = reshape(A,[],1440) ;
iwant = max(B)
Thank you this should do it
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrices and Arrays 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!