Maximum of a row in a matrix

1 Ansicht (letzte 30 Tage)
Giannakis Stoukas
Giannakis Stoukas am 27 Apr. 2015
Bearbeitet: Stephen23 am 28 Apr. 2015
I want the maximum of a specific row in a matrix

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by