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
rh x = I don't think you need the  in your max matrix.
where I can get the standard answer?
Easy staff. Don't think too much. First find the maximum age, then use the index of the maximum age and by using that you'll find the corresponding name.
Improved the code to deal with multiple people with the same oldest age
This is a good question.
simple indexing problem
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?
Distance walked 1D
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
Fibonacci-Sum of Squares
Matlab Basics - Create a row vector
to the 2 all elements
Calculate a Damped Sinusoid
Find MPG of Lightest Cars
Verify Law of Large Numbers
Plot Line Specifications
Solve a System of Linear Equations
Find the treasures in MATLAB Central and discover how the community can help you!
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