How do i find a maximum elements in a specific row ?

1 vue (au cours des 30 derniers jours)
David
David le 9 Fév 2020
I want to find a maximum elements in a second row of this 3x3 matrix?
[1,2,3;4,5,6;7,8,9]

Réponse acceptée

Chuguang Pan
Chuguang Pan le 9 Fév 2020
A=[1,2,3;4,5,6;7,8,9];
M=max(A(2,:))

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by