Finding maximum value between specific columns for each row

Hi, May I ask about Finding maximum value between specific columns for each row?
Let's say I have A = [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15; 16 17 18 19 20]. I would like to find maximum value for 2nd and 3rd colum for each row.
I should get B = [3; 8; 13; 18]. Could anyone please help me with that?
Thanks a lot in advance!

 채택된 답변

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Desktop에 대해 자세히 알아보기

태그

질문:

HYZ
2020년 2월 5일

답변:

2020년 2월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by