Rows

조회 수: 6 (최근 30일)
charles atlas
charles atlas 2012년 5월 9일
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)

채택된 답변

Dr. Seis
Dr. Seis 2012년 5월 9일
a = rand(1000,5);
b = min(a,[],2);

추가 답변 (1개)

Kevin Holst
Kevin Holst 2012년 5월 9일
column1 = min(mat,[],2);

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by