# NOT RUN {
# Convert a date string to Matlab datenum format.
sdates <- POSIXTomatlab(as.POSIXlt(as.Date("2000-01-01")))
edates <- POSIXTomatlab(as.POSIXlt(as.Date("2002-01-01")))
cfdates(sdates, edates, 1)
# }
Run the code above in your browser using DataLab