Cody

Solution 2140938

Submitted on 26 Feb 2020 by karthik raj
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
load patients.mat Age(55) = 12; name = string(LastName); maxAge_correct = "Robinson"; assert(isequal(find_max_age(name,Age),maxAge_correct))

large = 0 pos = 0 N = 100 large = 38 pos = 1 large = 43 pos = 2 large = 49 pos = 5 large = 50 pos = 20 old_name = "Robinson"

2   Pass
name = ["Renee" "Melanie" "Katrina" "Ethan"]; age = [23 27 19 13]; maxAge_correct = "Melanie"; assert(isequal(find_max_age(name,age),maxAge_correct))

large = 0 pos = 0 N = 4 large = 23 pos = 1 large = 27 pos = 2 old_name = "Melanie"