File Exchange

image thumbnail

COVID-19 World Spread Animation

version 1.5.5 (10.4 MB) by JM2
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.

9 Downloads

Updated 30 Apr 2020

View Version History

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

JM2 (2021). 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 (10)

Xinyue Liu

Aznan Arrifin

Hi Josh,

It shows the following error in my R2020a

Error: File: tight_subplot.m Line: 65 Column: 1
The function "untitled3" was closed with an 'end', but at least one other function definition was not.
To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

Error in livemapcovid19 (line 95)
[ha, pos] = tight_subplot(1,2,.15,.1,.05);

Please advise

Aznan
Malaysia

JM2

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

saeed saifyzadeh

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.

JM2

I’m working on a fix.

Roberto Freda

2018b

JM2

Hi Roberto what is your MATLAB version? Josh

Roberto Freda

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

Saleh Komies

you are amazing

zhang bo

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)

Inspired: LogliveplotCOVID19

Community Treasure Hunt

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

Start Hunting!