Selecting maximum values from every column in a matrix
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alexander
el 11 de Mzo. de 2013
Comentada: Eren Atar
el 14 de Jun. de 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 comentarios
Respuesta aceptada
Vishal Rane
el 11 de Mzo. de 2013
Editada: Vishal Rane
el 11 de Mzo. de 2013
1 comentario
Eren Atar
el 14 de Jun. de 2022
A = rand(24*60*60,1);
B = reshape(A,[],1440) ;
iwant = max(B)
Thank you this should do it
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!