Selecting maximum values from every column in a matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexander
am 11 Mär. 2013
Kommentiert: Eren Atar
am 14 Jun. 2022
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 Kommentare
Akzeptierte Antwort
Vishal Rane
am 11 Mär. 2013
Bearbeitet: Vishal Rane
am 11 Mär. 2013
1 Kommentar
Eren Atar
am 14 Jun. 2022
A = rand(24*60*60,1);
B = reshape(A,[],1440) ;
iwant = max(B)
Thank you this should do it
Weitere Antworten (0)
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!