Rows

2 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by