Problem 44947. Find the Oldest Person in a Room
Given two input vectors:
- name - user last names
- age - corresponding age of the person
Return the name of the oldest person in the output variable old_name.
Solution Stats
Problem Comments
-
15 Comments
Show
12 older comments
Ben
on 11 Jul 2022
not bad
Farooq
on 16 Sep 2022
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.
Qingrui Liu
on 7 Dec 2022
not that hard
Solution Comments
Show commentsGroup

University Union CODY event
- 14 Problems
- 9 Finishers
- Times 2 - START HERE
- Calculate Amount of Cake Frosting
- Convert from Fahrenheit to Celsius
- Find the Oldest Person in a Room
- Solve a System of Linear Equations
- Calculate a Damped Sinusoid
- Plot Damped Sinusoid
- Crop an Image
- Find the Best Hotels
- Calculate Inner Product
- Rescale Scores
- Longest run of consecutive numbers
- Find the longest sequence of 1's in a binary sequence.
- Draw a '8' in a zero matrix!
Problem Recent Solvers18419
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!