How to print result in matlab?

3 次查看(过去 30 天)
I have to print from date to To date with day.For example
from date:31.10.18;
To date:3.11.18;
my require output is
31.10.18 Wednesday;
1.11.18 Thrusday;
2.11.18 Friday;
3.11.18 Saturday

采纳的回答

Stephen23
Stephen23 2018-10-31
>> D1 = datenum('31.10.18','dd.mm.yy');
>> D2 = datenum('3.11.18','dd.mm.yy');
>> V = D1:D2;
>> datestr(V(:),'dd.mm.yy dddd')
ans =
31.10.18 Wednesday
01.11.18 Thursday
02.11.18 Friday
03.11.18 Saturday

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by