File Exchange

image thumbnail

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

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

16 Downloads

Updated 30 Mar 2020

GitHub view license on GitHub

Using MATLAB to visualize Covid-19 Cases Updated from Channel New Asia https://www.channelnewsasia.com/news/topics/wuhan-virus

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 (2020). Track The Global Spread of Covid-19 (Coronavirus) in MATLAB (https://github.com/KevinChngJY/wuhanvirusmatlab), GitHub. Retrieved .

Comments and Ratings (13)

Christa

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

Christa

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?
Thanks!
Alex

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);

Thank you!

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.

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

b_chartinfo=webread("https://spreadsheets.google.com/feeds/list/1NbedmkD3VpoP6Poc_1Xl-ElroXi08X5UyNBeyI1ts28/1/public/values?alt=json")
Error using readContentFromWebService (line 46)
The server returned the status 429 with message "unknown" in response to the
request to URL
https://spreadsheets.google.com/feeds/list/1NbedmkD3VpoP6Poc_1Xl-ElroXi08X5UyNBeyI1ts28/1/public/values?alt=json.

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.

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

ayyoub

Updates

1.0.6

Update Singapore Daily Live Data

1.0.5

Update Geo Map

1.0.4

Update Cruise Ship Location in Geo Map.

1.0.3

Add Geo Bubble Map

1.0.2

Change Description

1.0.1

Change Image

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