Using a for loop to find max value for each row in matrix

8 次查看(过去 30 天)
Hello, I have a 1001x251 matrix named Power and am trying to find the maximum value of each row of the matrix. Any help would be appreciated!

采纳的回答

Matt J
Matt J 2020-6-23
编辑:Matt J 2020-6-23
Just use max()
>> A=rand(1001,251 );
>> rowmax=max(A,[],2);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by