Maximum of a row in a matrix

2 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)

Categories

Find more on Data Types in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!