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

1 visualizzazione (ultimi 30 giorni)
I want to find a maximum elements in a second row of this 3x3 matrix?
[1,2,3;4,5,6;7,8,9]

Risposta accettata

Chuguang Pan
Chuguang Pan il 9 Feb 2020
A=[1,2,3;4,5,6;7,8,9];
M=max(A(2,:))

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by