<< date2num_fq Time series datelf2hf >>

Grocer >> Time series > date2num_m

date2num_m

transforms a matrix of dates into numbers

CALLING SEQUENCE

num=date2num_m(dat)

PARAMETERS

Input

* dat = a matrix of dates strings

* indw = 'w' if the date is given as a day date but corresponds to a week (optional)

 

Output

* num = the numerical representation of the dates

DESCRIPTION

Transforms a matrix of dates into their numerical representation.

EXAMPLE

v = date2num_m(['1a' '2a' '3a' '4a'])
// gives the vector [1:4]
 
v = date2num_m(string([1:4])+'a')
// gives the vector [1:4]; Note
 
v= date2num_m(['1975q1'; '1985q2'])
// gives the (2x1) vector [7901; 7942]

AUTHOR

Eric Dubois 2002-2007

Report an issue
<< date2num_fq Time series datelf2hf >>