Selecting maximum values from every column in a matrix

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

 Respuesta aceptada

Vishal Rane
Vishal Rane el 11 de Mzo. de 2013
Editada: Vishal Rane el 11 de Mzo. de 2013
Assuming
a = [11 2 3; 4 52 6; 7 8 92];
max(a)
gives exactly what you need.
Refer max()

1 comentario

A = rand(24*60*60,1);
B = reshape(A,[],1440) ;
iwant = max(B)
Thank you this should do it

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.

Productos

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 11 de Mzo. de 2013

Comentada:

el 14 de Jun. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by