Clear Filters
Clear Filters

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

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

Accepted Answer

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

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!