File Exchange

image thumbnail

Track The Global Spread of Covid-19 (Coronavirus) in MATLAB

version 1.0.6 (748 KB) by Kevin Chng
Track Covid-19 Virus Cases (API - get data from Channel New Asia)


Updated 30 Mar 2020

From GitHub

View Version History

View license on GitHub

Using MATLAB to visualize Covid-19 Cases Updated from Channel New Asia

This code is working as of 31st March, it might be not working if Channel New Asia changed the format of data. Timeline table is not update after January.

Cite As

Kevin Chng (2021). Track The Global Spread of Covid-19 (Coronavirus) in MATLAB (, GitHub. Retrieved .

Comments and Ratings (13)


I mean it's giving 5 as an answer instead of the data for each country


hi Kevin, I try to run the code but it's giving the answer is 5

Publish How to Use (I Can't Use)

Alex Backer

Hi Kevin,
Thanks for posting your covid19data matlab file.
It calls a function called string, which gives an error for me.
Do you have that file/function?

Undefined function 'string' for input arguments of type 'char'.

Error in covid19data (line 8)
Country_a(i) = string(a_tableinfo.feed.entry{i}.gsx_country.x_t);

Charlie Shao

Thank you!

Charlie Shao

Good work.

Kevin Chng

Hi Guys, They are working right now. I will try to source timeline api as Channel New Asia didn't update other countries except China.

Mary O'Connor

Getting an error in covid19data on the following line
Any help gratefully received

Error using readContentFromWebService (line 46)
The server returned the status 429 with message "unknown" in response to the
request to URL

George Ellis

Thank you for your work.

SangSup Cho

I get error message like this:
table_overall_b_Case.Updated = datetime(table_overall_b_Case.Updated,'InputFormat','MMM dd');

Something wrong with datatime command and 'MMM dd'.
Any help form you.

George Ellis

currently a small problem with "cruise ship" not being a country (for bubble map display)

dujtep thawonsusin


MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!