23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Examples Convert a date string to a serial date number.<br />

n = datenum('19-May-1995')<br />

n =<br />

728798<br />

Specifying year, month, and day, convert a date to a serial date number.<br />

n = datenum(1994,12,19)<br />

n =<br />

728647<br />

Convert a date string to a serial date number using the default pivot year<br />

n = datenum('12-june-12')<br />

n =<br />

735032<br />

datenum<br />

Convert the same date string to a serial date number using 1900 as the pivot<br />

year.<br />

n = datenum('12-june-12', 1900)<br />

n =<br />

698507<br />

See Also datestr, datevec, now<br />

2-369

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!