Reading and visualizing COVID-19 data

This live script reads data from the Johns Hopkins University dataset and then plots new COVID infected people vs all people infected.
Updated 31 Mar 2020

View License

The topic that is on everyone's mind these days is: COVID-19. How many cases do we have? How many cases are in Europe? How many cases are worldwide? We are also concerned about these questions so to find an answer we made an interactive diagram to analyze the new confirmed cases to the total confirmed cases of the corona virus.

- automatically read the latest live data from Johns Hopkins database
- calculates weekly moving average
- can show various countries
- creates figures and possible animation

Bonus features (see live script :))
- animation export as video
- map view with zoom using the latest data

Please find the Live Script for the steps we followed to get the interactive diagram. Feel free to experiment.

See for details.
Thanks for the GAMAX Laboratory Solutions Engineering Team for delivering this live script in a "deliver by tomorrow" project. :)

Original idea from:

Cite As

Lajos Varga et al (2020). Analyzing COVID-19 data (, MATLAB Central File Exchange. Retrieved March 31, 2020.

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
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

Added list of contributors


Updated description with list of features


Live script fine tuning


Description update


Updated cover image


Description text updated