Maximum of a row in a matrix

5 views (last 30 days)
Giannakis Stoukas
Giannakis Stoukas on 27 Apr 2015
Edited: Stephen23 on 28 Apr 2015
I want the maximum of a specific row in a matrix

Accepted Answer

Stephen23
Stephen23 on 27 Apr 2015
Edited: Stephen23 on 28 Apr 2015
Use max, and some indexing if needed:
A = [...]; % some matrix
N = 3; % the row that you want
max(A(N,:))

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by