function day is not working in matlab 2020a

4 views (last 30 days)
Prasanth R
Prasanth R on 21 Dec 2020
Commented: Ameer Hamza on 21 Dec 2020
I got the following error while using the function 'day' in matlab 2020a. But its worked in 2016a
>>t =
7.3652e+05
>> day(t)
Check for missing argument or incorrect argument data type in call to function 'day'.

Accepted Answer

Ameer Hamza
Ameer Hamza on 21 Dec 2020
Function day() is defined for datetime input arguments. For example
>> t = datetime('now');
>> day(t)
ans =
21
  4 Comments

Sign in to comment.

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!