Problem 44947. Find the Oldest Person in a Room
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
rh x = I don't think you need the  in your max matrix.
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.
a challenging problem
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 CommentsShow comments
Problem Recent Solvers13486
Find the numeric mean of the prime numbers in a matrix.
Project Euler: Problem 5, Smallest multiple
Convert a numerical matrix into a cell array of strings
Matlab Basics - Convert a row vector to a column vector
More from this Author13
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!