Maximum of a row in a matrix

1 visualizzazione (ultimi 30 giorni)
Giannakis Stoukas
Giannakis Stoukas il 27 Apr 2015
Modificato: Stephen23 il 28 Apr 2015
I want the maximum of a specific 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)

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by