The matrix variable rainmat stores the total rainfall in inches for some districts for the years 2010-2013. Each row has the rainfall amounts for a given district. For example, if rainmat has the value:
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:44.2
All Answers
total answers (1)
>> rainmat = [25 33 29 42; 53 44 40 56];
>> large = max(max(rainmat))
large =
56
>> linind = find(rainmat== large)
linind =
8
>> floor(linind/4)
ans =
2
need an explanation for this answer? contact us directly to get an explanation for this answer