Given two input vectors:
Return the name of the oldest person in the output variable old_name.
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
I don't understand, how to solve this problem.
Can someone help me?
Keep in mind you have to obtain the position for the older person. This was taught in the max(var) class. Good luck!
fist find maximum age then use index of maximum age and by using that find corresponding name
Even typing only "Old_name = 2" resuts in size to be 13. What logic and language did you apply for getting size 8?
Find nth maximum
Matlab Basics - Convert a row vector to a column vector
Return fibonacci sequence do not use loop and condition
Convert from Fahrenheit to Celsius
Calculate a Damped Sinusoid
Verify Law of Large Numbers
Find the Best Hotels
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office