busdate wrong output date

Hi,
R2016b; got a problem with busdate:
prev_date = busdate(datenum(num2str(20161024), 'yyyymmdd'), -1);
str2double(datestr(prev_date, 'yyyymmdd'))
20161021
should be 20161023.
Whats wrong here?

답변 (0개)

카테고리

도움말 센터File Exchange에서 Calendar에 대해 자세히 알아보기

제품

태그

질문:

2016년 10월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by