I have the following matrix double_new_WB_prop = [12 74000]. What I want to do is;
- Correlate a specific row with 3700 columns with another specific row with 3700 columns.
- Repeat for all 12 rows.
[rows,cols] = size(double_new_WB_prop);
ET_GWP = ;
for j = 1:rows
ET_GWP = corr(double_new_WB_prop(j,1:3700), double_new_WB_prop(j,70301:74000));
My problem is that ET_GWP is returning all NAN (not suppose to return this). My code also shows no error.
I don't know where I'm going wrong and it would helpful if someone could point out what I'm doing wrong.