image thumbnail

Load COVID-19 case data from John Hopkins database

version 0.63 (6.49 KB) by Axel Ahrens
This functions load, process and plot the data from the John Hopkins COVID-19 database.

554 Downloads

Updated 14 Apr 2020

From GitHub

View license on GitHub

# Load COVID-19 case data from John Hopkins database

Loading, processing and plotting the data from the John Hopkins COVID-19 database. The data is automatically read from the online repository, thus, you need a internet connection. The data can be found here: https://github.com/CSSEGISandData/COVID-19.

# How to (see runAll.m):
type = 'confirmed'; % 'confirmed','deaths','recovered'
[dataMatrix] = readCoronaData(type);
[dataTable,timeVector,mergedData] = processCoronaData(dataMatrix);
plotCoronaData(timeVector,mergedData,{'Denmark','US','Germany','China'},type);

Cite As

Axel Ahrens (2021). Load COVID-19 case data from John Hopkins database (https://github.com/aahr/covid-19_data_analysis), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with R2018b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.