How do I find the maximun value in each row except the first one?

18 views (last 30 days)
2010 2011 2012 2013 2014
99.8 26.6 16.0 17.2 67.2
24.4 94.0 20.4 95.8 133.4
73.8 17.2 29.2 24.8 56.4
49.0 11.8 17.2 73.6 31.4
61.8 34.0 71.2 57.8 14.4
69.0 44.4 59.8 8.4 11.0
11.0 27.6 4.4 8.0 79.6
30.8 14.0 12.6 43.6 13.0
26.6 19.2 45.4 40.0 27.8
12.6 81.2 40.4 48.2 39.6
5.4 56.8 8.6 78.8 98.2
62.8 65.6 69.6 100.2 51.1
How do I find the maximun value in each row except the first one?

Answers (1)

David Hill
David Hill on 4 Apr 2020
Edited: David Hill on 4 Apr 2020
A=max(a(2:end,:),2);

Tags

Products

Community Treasure Hunt

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

Start Hunting!