Maximum of a row in a matrix

1 vue (au cours des 30 derniers jours)
Giannakis Stoukas
Giannakis Stoukas le 27 Avr 2015
Modifié(e) : Stephen23 le 28 Avr 2015
I want the maximum of a specific row in a matrix

Réponse acceptée

Stephen23
Stephen23 le 27 Avr 2015
Modifié(e) : Stephen23 le 28 Avr 2015
Use max, and some indexing if needed:
A = [...]; % some matrix
N = 3; % the row that you want
max(A(N,:))

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by