Correlate two data sets
15 views (last 30 days)
Show older comments
I've two sets of data, which I would like to correlate. The number of elements in both the data sets are different and have different respective dates. What would be the best way to do this?

2 Comments
KALYAN ACHARJYA
on 31 Jul 2018
You can try to by considering all dates, in both data sets by color variation in the value of both datasets
Answers (1)
jonas
on 31 Jul 2018
Obviously there is a linear increase over time in the longer vector. You can simply interpolate the values in the longer vector to match the exact dates of the shorter vector and then check the correlation by corr.
2 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!