Maximum of a row in a matrix

 Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by