Selecting maximum values from every column in a matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Vishal Rane
il 11 Mar 2013
Modificato: Vishal Rane
il 11 Mar 2013
1 Commento
Eren Atar
il 14 Giu 2022
A = rand(24*60*60,1);
B = reshape(A,[],1440) ;
iwant = max(B)
Thank you this should do it
Più risposte (0)
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!