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)

 采纳的回答

更多回答(1 个)

Kevin Holst
Kevin Holst 2012-5-9

1 个投票

column1 = min(mat,[],2);

类别

帮助中心File Exchange 中查找有关 Language Fundamentals 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by