busdate wrong output date

1 visualizzazione (ultimi 30 giorni)
Pedro Pantalone
Pedro Pantalone il 24 Ott 2016
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?

Risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by