MATLAB Answers

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

3 views (last 30 days)
James Robert Fletcher
James Robert Fletcher on 23 Jun 2020
Commented: Matt J on 24 Jun 2020
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!

  0 Comments

Sign in to comment.

Accepted Answer

Matt J
Matt J on 23 Jun 2020
Edited: Matt J on 23 Jun 2020
Just use max()
>> A=rand(1001,251 );
>> rowmax=max(A,[],2);

More Answers (0)

Tags