how to calculate the correlation coefficient of two data sets ( containing dates) ?

4 次查看(过去 30 天)
I have to column arrays which containing dates...
I want to calculate the correlation coefficient between column A and column B
I use this code :
but it didn't work. it seems that i have first to convert dates to numbers
any idea on how i could calculate the correlation coefficient between A & B ?

采纳的回答

the cyclist
the cyclist 2015-9-16
You can use the datenum command to convert dates to numeric.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by