I'm looking at half hourly data over a year (e.g. 17568×6 for weather variables, and 17568×1 for various load and demand data timetables). I want to calculate the correlation between individual columns in my weather timetable to (generally the 1st) columns of my load/demand timetable. I've tried
stats::correlation(timetable_weather,1,timetable_demand,1),
which comes up with
Error: File: CorrelationDemandandTemp.m Line: 1 Column: 7 Unexpected MATLAB operator.
And I've read through corrcoef but am not entirely sure how to adapt that to columns of different timetables (I could put the columns I'm wanting to find correlations from in the same timetable if that would help?)
Best Answer