File Exchange

image thumbnail

COVID-19 World Spread Animation

version 1.3 (9.86 MB) by Joshua McGee
This code will generate an animation displaying the spread of COVID-19 and save it as a video file. Data is obtained and processed from HDX.

149 Downloads

Updated 02 Apr 2020

View License

This code receives and processes data from the HDX and creates a geobubble and graphical plot of the spread of the COVID-19 virus. The plots are updated for each date and used to generate movie displaying the spread of the virus across the globe.

A plot (with the top 10 cases by countries) can be displayed next to the geobubble by setting 'live_plot_enabled' to 1. This can be disabled by setting it to 0.

NOTE: Compatibility issues have been fixed. Please let me know if you find otherwise.

Cite As

Joshua McGee (2020). COVID-19 World Spread Animation (https://www.mathworks.com/matlabcentral/fileexchange/74718-covid-19-world-spread-animation), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Joshua McGee

Hi saeed, just switch 'streets' to any of the inputs that you listed like 'darkwater' or 'grayland'.
Josh

Hi, it doesn't work in 2018b. please help.

Error:

Error using livemapcovid19 (line 111)
Expected Basemap to match one of these values:

'darkwater', 'grayland', 'bluegreen', 'grayterrain', 'colorterrain', 'landcover', 'none'

The input, 'streets', did not match any of the valid values.

Joshua McGee

I’m working on a fix.

2018b

Joshua McGee

Hi Roberto what is your MATLAB version? Josh

Error using livemapcovid19 (line 44)
'01_22_20' is not a valid variable name.

you are amazing

zhang bo

Updates

1.3

-updated 4/2

1.2

-updated image and files

1.1

updated

1.0.9

-compatibility and bug fixes

1.0.8

-added new category (100,000+)

1.0.7

-compatibility

1.0.6

-compatibility

1.0.5

-speed and formatting

1.0.4

-image

1.0.3

-added ability to disable plot (live_plot_enabled)

1.0.2

-compatibility

1.0.1

-description

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: tight_subplot(Nh, Nw, gap, marg_h, marg_w)