Clear Filters
Clear Filters

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

2 views (last 30 days)
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 ?

Accepted Answer

the cyclist
the cyclist on 16 Sep 2015
You can use the datenum command to convert dates to numeric.

More Answers (0)

Categories

Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!