Death ages from Wikipedia

This program gets the ages of famous dead people from all months in a specified year from Wikipedia and histograms them.
77 Downloads
Updated 22 Mar 2020

View License

This program gets the ages of famous dead people from all months in a specified year from Wikipedia and histograms them. It uses the webread() function to read in URLs like this: "https://en.wikipedia.org/wiki/Deaths_in_December_2019". Such pages list the name, age, and (sometimes) the cause of death for people and animals that are well known or in the news for some reason. Then it parses what comes back to discard famous animals, and extract the ages of people. It computes and marks the mean age and median age at time of death for the people.

Then it asks you an age (like your age) and gives you the the age that you'll have a 50% probability of living to. It also prints to the command window those people who were unusually young or old when they died.

Cite As

Image Analyst (2024). Death ages from Wikipedia (https://www.mathworks.com/matlabcentral/fileexchange/74664-death-ages-from-wikipedia), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with R2014b to R2020a
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0