Problem 44947. Find the Oldest Person in a Room
Solution Stats
Problem Comments
-
15 Comments
In the first test suite, Robinson and Reed both have the same age, so I think either the test suite should be improved or Reed's age in the .mat file should be changed.
Tricky question though
Good one
Interesting
rh x = I don't think you need the [] in your max matrix.
Good job.
where I can get the standard answer?
Easy staff. Don't think too much. First find the maximum age, then use the index of the maximum age and by using that you'll find the corresponding name.
Good problem
idk adam
a challenging problem
Good question
not bad
I solved the problem in MATLAB but on here it did not work. I found the index of the maximum number in the variable age, and then used that to output a name with the same index in the name variable.
not that hard
Solution Comments
Show commentsProblem Recent Solvers13486
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
8286 Solvers
-
Project Euler: Problem 5, Smallest multiple
1148 Solvers
-
Convert a numerical matrix into a cell array of strings
1346 Solvers
-
360 Solvers
-
Matlab Basics - Convert a row vector to a column vector
573 Solvers
More from this Author13
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!