Rows

10 visualizaciones (últimos 30 días)
charles atlas
charles atlas el 9 de Mayo de 2012
I have a matrix of data and with 1000 rows and 5 columns. I want to take the minimum value in each row and store that in a column that is 1000 rows long as in: I want my answer to be a column (column1= the name of the column) that is 1000 rows long and those values are the minimum value in each row from the original matrix (matrix1=name of the matrix)

Respuesta aceptada

Dr. Seis
Dr. Seis el 9 de Mayo de 2012
a = rand(1000,5);
b = min(a,[],2);

Más respuestas (1)

Kevin Holst
Kevin Holst el 9 de Mayo de 2012
column1 = min(mat,[],2);

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by