-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time error #13
Comments
Evironment: Matlab 2020a |
Hi, |
Hi, Cheynet, This issue had been sovled. Maybe it due to matlab version. In getDataCOVID.m, I modified the code in line 48 to ''datetime(datestr(now,'yyyy-mm-dd'))-datenum(1)'', and in ChineseProvince.mlx, "datetime(datestr(now,'yyyy-mm-dd'))+datenum(10);" in line 89. Then it's ok! |
I also encounter this problem and the version of my MATLAB is R2020a. I solve this problem by changing the code from
to
Ref: Examples |
Hi yuhaoooo, Thank you for the feedback. Both forms work on my Matlab version, but I have R2019b. There may have been some changes in R2020a? I will update the syntax to the one you propose. We can let the issue as "open" until I create a new release. |
I think this is because my machine set is Chinese. And I guess your machine set is English. So I should add
And this does work in my machine. |
OK thank, I did not know about that. I will do it. |
I have uploaded a new version of the code with the suggestion by @YUHAOOOO |
Hi,Cheynet Thanks for your adjustments In addition, how to aggregate all provinces of china to country data ? |
Hi @wenddymacro , You may do as I did in the example "Example_US_cities.mlx" for the state of Washington. For China, it should be possible to iterate over each province and cumulate the time histories of confirmed, deceased and recovered cases. |
Thanks, I had aggregated the chinese data |
Error using datetime (line 640)
Could not recognize the date/time format of '09-May-2020'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'zh_CN' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
Error in getDataCOVID (line 47)
time = datetime(2020,01,22):days(1):datetime(datestr(floor(datenum(now))))-datenum(1);
The text was updated successfully, but these errors were encountered: