Hi,
I have been handed a MATLAB code that I want to speed up. The function datenum has been used which takes a lot of time. Each file has an array of some 50000 dates and there might be hundreds of such files so it takes up a lot of time. I was wondering if I could skip that step altogether. I do not see a specific need to convert the dates, unless it is faster to pass as a parameter among functions or any such benefit. If I do not need to use the equivalent number in any way, are there any other benefits that one may get by converting dates to equivalent numbers?
Also if I deem it necessary, is there an equivalent function to datenum in C, so that I can use a mex file for the purpose?
Thank you in advance!
I appreciate your advice!
Best Answer