Thanks for the input Roger, I see what you mean.I realised I did not explain the data good enough, so I will do that now. Sorry for the poor explanation.
The first row is indeed time, or the cell of a model if you wish, but it is the same as the traveltime to that cell.
The complete dataset has all the traveltime steps (1:348), and a corresponding value. This is the model output. Model output is calibrated against observations, which is the "incomplete" set with NaNs. I have made these NaNs myself as they are not relevant for the model, and should not me included in calibration (nor analysis after) and not read by Matlab in the correlation. So you can imagine it as a groundwater problem, where the traveltime is the same to (sometimes) multiple observations. I will average these observations, and weight them, so that there is only 1 observation per time. The "incomplete" dataset will have traveltimes like 26,28,30,60,96,98....but the value of each set at the same time can be correlated.
So I would like Matlab to read this, find where there are values for the same time (first row) and correlate all these values (or do other statistics).
I hope this was more clear. Thanks beforehand again.
Reinert
