Cody

Solution 2201576

Submitted on 9 Apr 2020
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   Fail
load patients.mat Age(55) = 12; name = string(LastName); maxAge_correct = "Robinson"; assert(isequal(find_max_age(name,Age),maxAge_correct))

max_age = 50 idx = 20 max_name = "Robinson"

Output argument "old_name" (and maybe others) not assigned during call to "find_max_age". Error in Test1 (line 5) assert(isequal(find_max_age(name,Age),maxAge_correct))

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

max_age = 27 idx = 2 max_name = "Melanie"

Output argument "old_name" (and maybe others) not assigned during call to "find_max_age". Error in Test2 (line 4) assert(isequal(find_max_age(name,age),maxAge_correct))

Suggested Problems

More from this Author13