transforms a matrix of dates into numbers
num=date2num_m(dat)
* dat = a matrix of dates strings
* indw = 'w' if the date is given as a day date but corresponds to a week (optional)
* num = the numerical representation of the dates
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] | ![]() | ![]() |