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
I don't understand, how to solve this problem.
Can someone help me?
This may helps
[~,Id]=max(age)
old_name=name(Id)
function old_name = find_max_age(name,age)
[M I]=max(age)
old_name = name(I)
end
hope this will be helpfull :)
function old_name = find_max_age(name,age)
[x,y]=max(age,[],2);
old_name=name(y);
end
who can help me,it ran incorrectly
simple indexing problem
Tough problem
its good
Keep in mind you have to obtain the position for the older person. This was taught in the max(var) class. Good luck!
tricky
fist find maximum age then use index of maximum age and by using that find corresponding name
good one.
Even typing only "Old_name = 2" resuts in size to be 13. What logic and language did you apply for getting size 8?
Return a list sorted by number of occurrences
1547 Solvers
Who has power to do everything in this world?
323 Solvers
What is Sum Of all elements of Matrix
299 Solvers
Convert from Fahrenheit to Celsius
8658 Solvers
2193 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!