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

1 Ansicht (letzte 30 Tage)
David
David am 9 Feb. 2020
Beantwortet: Chuguang Pan am 9 Feb. 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]

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by