Code covered by the BSD License  

Highlights from
mdatestr, mdatenum: A simple alternative of datestr and datenum

4.0

4.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 1.58 KB File ID: #29184

mdatestr, mdatenum: A simple alternative of datestr and datenum

by

 

the original datestr and datenum are powerful, but slow. The two functions' are limited, but faster.

| Watch this File

File Information
Description

The original datestr and datenum are powerful, but slow.

mdatestr, mdatenum only convert date between string with format 'yyyy-mm-dd' and series value (with Excel type).

They cost 20% time of datestr and datenum(with specific format).

% usage
% mdatenum('2010-10-30') % ans = 734421
% mdatestr(73421) % ans = '2010-10-30'

Acknowledgements

Date Convert inspired this file.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
02 Dec 2010 Brian Emery

Nice submission, easy to use, and easy to modify to do what I needed to do.

Contact us